# Netlify Database Setup

> Sets up Postgres on Netlify with migrations, Drizzle and preview branches, and fixes failing migration deploys.

- Page: https://youraiskill.com/skill/netlify-netlify-database
- What it does: Use this skill whenever a Netlify project needs a Postgres database. It covers Netlify Database setup, queries from Functions or Edge Functions, schema changes through migrations in netlify/database/migrations, Drizzle ORM wiring, local dev databases and tests, deploy-preview database branches, and moving off Neon, Supabase, RDS or the legacy @netlify/neon extension. Activate it when someone asks to add a database, store users or posts or orders, save form submissions, create or alter a table, add a column, write a migration, set up Drizzle, fix a failing migration deploy, seed or test against a local database, or switch an existing Postgres app onto Netlify. Use it even if the request never says Netlify Database explicitly.
- Niches: backend, devops
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (7 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
