Skip to content

Commit

Permalink
fix: remove directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed May 31, 2024
1 parent 334dfa7 commit 1ed386f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
"--testTimeout=3600000",
"--runInBand",
"--no-cache",
"-t",
"index filtered by address"
],
"outputCapture": "std",
"console": "integratedTerminal",
Expand Down
6 changes: 1 addition & 5 deletions migrations/1677284495500_current-locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ export function up(pgm: MigrationBuilder): void {
notNull: true,
},
});
pgm.createConstraint(
'current_locations',
'current_locations_locations_fk',
'FOREIGN KEY(ordinal_number, block_height, tx_index) REFERENCES locations(ordinal_number, block_height, tx_index) ON DELETE CASCADE'
);
pgm.createConstraint(
'locations',
'locations_satoshis_fk',
'FOREIGN KEY(ordinal_number) REFERENCES satoshis(ordinal_number) ON DELETE CASCADE'
);
pgm.createIndex('current_locations', ['ordinal_number'], { unique: true });
pgm.createIndex('current_locations', ['address']);
pgm.createIndex('current_locations', ['block_height', 'tx_index']);
}
24 changes: 0 additions & 24 deletions migrations/1717136480216_drop-fk-constraints.ts

This file was deleted.

0 comments on commit 1ed386f

Please sign in to comment.