Skip to content

Commit

Permalink
add AnaltyicSession migration
Browse files Browse the repository at this point in the history
  • Loading branch information
SimNed committed Sep 3, 2024
1 parent d9a84d2 commit c6ac6ab
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { MigrationInterface, QueryRunner } from "typeorm";

Check failure on line 1 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

All imports in the declaration are only used as types. Use `import type`

Check failure on line 1 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `"typeorm"` with `'typeorm'`

export class AlterAnalyticSessionsByAddPhaseAndUSer$1725348767523 implements MigrationInterface {

Check failure on line 4 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `⏎····public·async·up(queryRunner:·QueryRunner):·Promise<void>·{⏎····` with `··public·async·up(queryRunner:·QueryRunner):·Promise<void>·{`
public async up(queryRunner: QueryRunner): Promise<void> {

Check warning on line 5 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

'queryRunner' is defined but never used
}

public async down(queryRunner: QueryRunner): Promise<void> {

Check failure on line 8 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `····public·async·down(queryRunner:·QueryRunner):·Promise<void>·{⏎····}⏎` with `··public·async·down(queryRunner:·QueryRunner):·Promise<void>·{}`

Check warning on line 8 in server/migrations/1725348767523-AlterAnalyticSessionsByAddPhaseAndUser.ts

View workflow job for this annotation

GitHub Actions / lint

'queryRunner' is defined but never used
}

}

0 comments on commit c6ac6ab

Please sign in to comment.