From 7d9addb8cf5e3a2888090006bd10baa9ed35215f Mon Sep 17 00:00:00 2001 From: Pooya Raki Date: Mon, 23 Dec 2024 23:27:46 +0100 Subject: [PATCH] Remove: clean notification data --- migrations/1734992798452-cleanNotificationData.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migrations/1734992798452-cleanNotificationData.ts diff --git a/migrations/1734992798452-cleanNotificationData.ts b/migrations/1734992798452-cleanNotificationData.ts new file mode 100644 index 0000000000..8035cb222d --- /dev/null +++ b/migrations/1734992798452-cleanNotificationData.ts @@ -0,0 +1,13 @@ +import type { MigrationInterface, QueryRunner } from 'typeorm'; + +export class CleanNotificationData1734992798452 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `DELETE FROM notification_subscription_notification_types;`, + ); + await queryRunner.query(`DELETE FROM notification_subscriptions;`); + await queryRunner.query(`DELETE FROM push_notification_devices;`); + } + + public async down(): Promise {} +}