feat(auth): remove analytics table in favor of analytics service

This commit is contained in:
Karol Sójko 2022-11-07 11:57:34 +01:00
parent 45758bf554
commit 49feadd32a
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0

View 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
}
}