Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/database/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function errorIsOrgIdMigration(e: unknown): e is DrizzleQueryError {
}

export async function migrateDb() {
runMigrate()
await runMigrate()
.catch(async (e) => {
if (errorIsOrgIdMigration(e)) {
console.log("non-null videos.orgId migration failed, running backfill");
Expand All @@ -34,5 +34,6 @@ export async function migrateDb() {
throw new Error(
"videos.orgId backfill failed, you will need to manually update the videos.orgId column before attempting to migrate again.",
);
throw e;
});
}