Skip to content

Commit

Permalink
chore: Adds index to the Google Sheets User db table
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlovegrove committed Nov 20, 2023
1 parent 49240db commit f14892b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/migrations/1700484408073-index-twistId.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { MigrationInterface, QueryRunner } from 'typeorm'

export class indexTwistId1700484408073 implements MigrationInterface {
name = 'indexTwistId1700484408073'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
'CREATE INDEX `IDX_bb5c51b9806c01de5b44d0e033` ON `user` (`twistId`)',
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('DROP INDEX `IDX_bb5c51b9806c01de5b44d0e033` ON `user`')
}
}

0 comments on commit f14892b

Please sign in to comment.