Skip to content

Commit

Permalink
Note statement count in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed May 12, 2023
1 parent 4ab6d00 commit 2102bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/db/migrate.ts
Expand Up @@ -62,7 +62,9 @@ export const migrate = async function ({
if (fake) {
console.log(`Faking migration ${migration.hash}`);
} else {
console.log(`Applying migration ${migration.hash}`);
console.log(
`Applying migration ${migration.hash} (${migration.sql.length} statement(s))`,
);
for (const stmt of migration.sql) {
await tx.execute(sql.raw(stmt));
}
Expand Down

0 comments on commit 2102bdf

Please sign in to comment.