Db migrations
Skill khairm/superset-windows-arm64/.agents/skills/db-migrations
Create a database migration with Drizzle on a fresh Neon branch. Use when changing the packages/db schema or generating migrations.From its SKILL.md
npx -y skills add khairm/superset-windows-arm64 --skill db-migrationsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.0 KB, as published. Nobody here has run it
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_IDandNEON_PROJECT_IDenv vars are set in .env- list_projects tool requires org_id passed in
- NEVER manually edit files in
packages/db/drizzle/- this includes.sqlmigration 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 inpackages/db/src/schema/and ask the user to rundrizzle-kit generate.