db-migrations
SolidCreate a database migration with Drizzle on a fresh Neon branch. Use when changing the packages/db schema or generating migrations.
API & Backend 14,079 stars
1259 forks Updated today NOASSERTION
Install
Quality Score: 81/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# DB migrations
- Always spin up a new neon branch to create migrations. Update our root .env files to point at the neon branch locally.
- Use drizzle to manage the migration. You can see the schema at packages/db/src/schema. Generating and applying against a dev Neon branch is fine; never apply against a shared or production database — those go through the normal deploy flow.
- Create migrations by changing drizzle schema then running `bunx drizzle-kit generate --name="<sample_name_snake_case>"`
- `NEON_ORG_ID` and `NEON_PROJECT_ID` env vars are set in .env
- list_projects tool requires org_id passed in
- **NEVER manually edit files in `packages/db/drizzle/`** - this includes `.sql` migration files, `meta/_journal.json`, and snapshot files. These are auto-generated by Drizzle. Change only the schema files in `packages/db/src/schema/` and let `drizzle-kit generate` write the migration (hand-edits to generated files require explicit user confirmation).
Details
- Author
- superset-sh
- Repository
- superset-sh/superset
- Created
- 10 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- NOASSERTION
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
API & Backend Listed
database-development
Database migrations and Drizzle ORM guidelines for the vm0 project
1,152 Updated today
vm0-ai API & Backend Listed
db-migration
Make a database schema change safely — edit schema.ts, generate the migration, review the SQL, apply it. Use for any change under src/db/.
19 Updated 1 months ago
nikandr-surkov API & Backend Listed
api-database-drizzle
Drizzle ORM, queries, migrations
24 Updated 3 days ago
agents-inc