Skip to content

Commit 2b8cf2c

Browse files
authored
fix: rename block time migration (#2519)
1 parent 2932718 commit 2b8cf2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
2-
exports.up = pgm => {
1+
import type { MigrationBuilder } from 'node-pg-migrate';
2+
3+
export const up = (pgm: MigrationBuilder) => {
34
pgm.createIndex('blocks', [{ name: 'block_time', sort: 'DESC' }], {
45
where: 'canonical = true',
56
name: 'blocks_canonical_block_time_desc_idx',
67
});
78
};
89

9-
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
10-
exports.down = pgm => {
10+
export const down = (pgm: MigrationBuilder) => {
1111
pgm.dropIndex('blocks', [], { name: 'blocks_canonical_block_time_desc_idx' });
1212
};

0 commit comments

Comments
 (0)