db-migrations

Solid

Create a database migration with Drizzle on a fresh Neon branch. Use when changing the packages/db schema or generating migrations.

API & Backend 12,636 stars 1130 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
40
Issue Health 10%
50
License 10%
100
Description 5%
100

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. Never run a migration yourself. - 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. If you need to create a migration, only modify the schema files in `packages/db/src/schema/` and ask the user to run `drizzle-kit generate`.

Details

Author
superset-sh
Repository
superset-sh/superset
Created
9 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