Skip to content

Commit

Permalink
chore: Adds index to the Google Sheets User db table (#189)
Browse files Browse the repository at this point in the history
* chore: Adds index to the Google Sheets User db table

* chore: Lint fix
  • Loading branch information
scottlovegrove authored Nov 20, 2023
1 parent 49240db commit a43692b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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`')
}
}
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const NonOptionalExportOptionsNames = [
'parentTaskId',
] as const

export type ExportOptions = typeof ExportOptionsNames[number]
export type ExportOptions = (typeof ExportOptionsNames)[number]

export type ExportOptionsToUse = Record<ExportOptions, boolean> & {
includeCompleted: boolean
Expand Down

0 comments on commit a43692b

Please sign in to comment.