Skip to content

Commit

Permalink
updated to new drizzle kit syntax for generating migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Jan 21, 2025
1 parent 3ce5e7f commit 21b5170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ving/cli/drizzle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default defineCommand({
runMigrations();
}
else if (args.prepare) {
spawn('npx drizzle-kit generate:mysql --out ./ving/drizzle/migrations --schema ving/drizzle/schema', [], { stdio: 'inherit', shell: true });
spawn('npx drizzle-kit generate --dialect mysql --out ./ving/drizzle/migrations --schema ving/drizzle/schema', [], { stdio: 'inherit', shell: true });
}
else {
await showUsage(cmd, { meta: { name: 'ving.mjs' } });
Expand Down

0 comments on commit 21b5170

Please sign in to comment.