diff --git a/packages/auth/migrations/1667818539829-remove_analytics.ts b/packages/auth/migrations/1667818539829-remove_analytics.ts new file mode 100644 index 000000000..fccbad154 --- /dev/null +++ b/packages/auth/migrations/1667818539829-remove_analytics.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from 'typeorm' + +export class removeAnalytics1667818539829 implements MigrationInterface { + name = 'removeAnalytics1667818539829' + + public async up(queryRunner: QueryRunner): Promise { + 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 { + return + } +}