DATABASE SETUP / EASY MODE

D1 IN
THREE STEPS

No SQL import, migration command or manual table creation is required. Create one Cloudflare D1 database, bind it to this Pages project using the exact name DB, and redeploy. The Worker creates and upgrades the audit schema automatically.

Return to DevOps Platform
01

Create D1

  1. Open Cloudflare Dashboard.
  2. Go to Storage & Databases → D1 SQL Database.
  3. Create a database named roberto-devops-db.
02

Bind as DB

  1. Open Workers & Pages → your DevOps project.
  2. Settings → Bindings → Add → D1 database.
  3. Set Variable name exactly to DB.
03

Redeploy

  1. Save the binding.
  2. Redeploy the current ZIP.
  3. Return here and press Check connection.
LIVE DATABASE STATUSAUTO SCHEMA
BindingDB ConnectionCHECKING Schema Tables Delivery events Dispatch audit Mode SQL commandsNOT REQUIRED
Checking database state…
OPTIONAL ONE-COMMAND HELPERWINDOWS

The included PowerShell helper opens the Cloudflare login, creates a D1 database through Wrangler, prints the binding details, and shows the exact dashboard steps. It does not store your Cloudflare credentials.

Set-ExecutionPolicy -Scope Process Bypass
.\setup-devops-database.ps1