Skip to content

Commit

Permalink
fix: test again
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Nov 16, 2023
1 parent 631b0c9 commit 591b4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/1698856424356_locations-transfer-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export function up(pgm: MigrationBuilder): void {
pgm.addColumn('locations', {
transfer_type: {
type: 'transfer_type',
notNull: true,
default: 'transferred',
},
});
pgm.sql(`UPDATE locations SET transfer_type = 'transferred'`);
pgm.alterColumn('locations', 'transfer_type', { notNull: true });
}

export function down(pgm: MigrationBuilder): void {
Expand Down

0 comments on commit 591b4c5

Please sign in to comment.