diff --git a/packages/server/src/migrations/006_set_payment_project.ts b/packages/server/src/migrations/006_set_payment_project.ts index 75a819c..97b47f2 100644 --- a/packages/server/src/migrations/006_set_payment_project.ts +++ b/packages/server/src/migrations/006_set_payment_project.ts @@ -13,7 +13,7 @@ type Customer = { export class MigrationSetPaymentProject extends Migration { async up(): Promise { - if (await this.ctx?.schema.hasColumn('payment', 'project__id')) { + if (!(await this.ctx?.schema.hasTable('payment')) || (await this.ctx?.schema.hasColumn('payment', 'project__id'))) { return; }