feat(auth): remove analytics table in favor of analytics service
This commit is contained in:
parent
45758bf554
commit
49feadd32a
1 changed files with 15 additions and 0 deletions
15
packages/auth/migrations/1667818539829-remove_analytics.ts
Normal file
15
packages/auth/migrations/1667818539829-remove_analytics.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { MigrationInterface, QueryRunner } from 'typeorm'
|
||||
|
||||
export class removeAnalytics1667818539829 implements MigrationInterface {
|
||||
name = 'removeAnalytics1667818539829'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query('ALTER TABLE `analytics_entities` DROP FOREIGN KEY `FK_d2717c4ce2600b9f7acb6b378c5`')
|
||||
await queryRunner.query('DROP INDEX `REL_d2717c4ce2600b9f7acb6b378c` ON `analytics_entities`')
|
||||
await queryRunner.query('DROP TABLE `analytics_entities`')
|
||||
}
|
||||
|
||||
public async down(): Promise<void> {
|
||||
return
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue