Guide for using Netlify Database — the GA managed Postgres product built into Netlify. Use when a project needs any kind of dynamic, structured, or relational data. Covers provisioning via @netlify/database, Drizzle ORM (@beta) setup, migrations, preview branching, and safe production data handling. Blobs is only for file/asset storage — any dynamic data belongs in the database.
90
88%
Does it follow best practices?
Impact
94%
1.40xAverage score across 3 eval scenarios
Passed
No known issues
Drizzle ORM setup for Netlify Database
drizzle-orm @beta tag
0%
100%
drizzle-kit @beta tag
0%
100%
@netlify/database dependency
0%
100%
netlify-db adapter import
0%
100%
No connection string in client
0%
100%
Migrations output directory
0%
100%
db:generate script
100%
100%
db:migrate script
0%
100%
snake_case column names
100%
100%
schema.ts location
100%
100%
Breaking schema change with expand-and-contract
Expand step present
100%
100%
Contract step present
100%
100%
No combined rename/drop
100%
100%
Migrations directory
100%
100%
No direct DDL instruction
100%
100%
No drizzle-kit push/migrate
100%
100%
Local apply command
0%
0%
Deploy applies hosted migrations
0%
70%
Final schema accuracy
100%
100%
snake_case migration columns
100%
100%
Production DML migration for data backfill
DML migration file created
100%
100%
No direct DB connection instruction
100%
100%
Deploy applies to production
100%
100%
Preview branch verification
100%
100%
Correct migrations directory
100%
100%
No drizzle-kit push/migrate
100%
100%
SQL targets NULL slugs only
100%
100%
Idempotent or guarded SQL
100%
100%
Local apply command
50%
0%
Migration naming convention
100%
100%
cffaf74
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.