Skip to content

Commit

Permalink
add safeTransaction to donation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Dec 5, 2023
1 parent c8630f8 commit a5cdd68
Show file tree
Hide file tree
Showing 8 changed files with 4,262 additions and 152 deletions.
23 changes: 23 additions & 0 deletions migration/1701792159998-addSafeTransactionIdToDonation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class addSafeTransactionIdToDonation1701792159998
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`
ALTER TABLE donation
ADD COLUMN IF NOT EXISTS "safeTransactionId" character varying DEFAULT null
`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`
ALTER TABLE donation
DROP "safeTransactionId"
`,
);
}
}
Loading

0 comments on commit a5cdd68

Please sign in to comment.