Skip to content

Commit

Permalink
Merge pull request #1318 from Giveth:fix/recurring_donation_migration
Browse files Browse the repository at this point in the history
Added missed column for recurring donation
  • Loading branch information
aminlatifi authored Feb 13, 2024
2 parents 2949c20 + 8584685 commit fd0995a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions migration/1707834685578-addRecurringDonationMissingColumns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddRecurringDonationMissingColumns1707834685578
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE recurring_donation ADD COLUMN IF NOT EXISTS anonymous boolean DEFAULT false;
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {}
}

0 comments on commit fd0995a

Please sign in to comment.