Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Nov 6, 2023
1 parent abec948 commit db171e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/migrations/006_set_payment_project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Customer = {

export class MigrationSetPaymentProject extends Migration {
async up(): Promise<void> {
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;
}

Expand Down

0 comments on commit db171e0

Please sign in to comment.