Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates Drizzle migrations for Cloudflare D1, flags risky SQL like table rebuilds, and applies, repairs or recovers them locally/remotely.
52% 96%+43 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 12 of 23 without it.
3 of 3 safety checks passed
Not used yet
Guided workflow for Cloudflare D1 database migrations using Drizzle ORM.
pnpm db:generate
This creates a new .sql file in drizzle/ (or your configured migrations directory).
Always read the generated SQL before applying. Drizzle sometimes generates destructive migrations for simple schema changes.
If you see this pattern, the migration will likely fail:
CREATE TABLE `my_table_new` (...);
INSERT INTO `my_table_new` SELECT ..., `new_column`, ... FROM `my_table`;
-- ^^^ This column doesn't exist in old table!
DROP TABLE `my_table`;
ALTER TABLE `my_table_new` RENAME TO `my_table`;
Cause: Changing a column's default value in Drizzle schema triggers full table recreation. The INSERT SELECT references the new column from the old table.
Fix: If you're only adding new columns (no type/constraint changes on existing columns), simplify to:
ALTER TABLE `my_table` ADD COLUMN `new_column` TEXT DEFAULT 'value';
Edit the .sql file directly before applying.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.