Skip to content

Commit

Permalink
Remove: clean notification data
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Dec 23, 2024
1 parent dee7e8e commit 7d9addb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions migrations/1734992798452-cleanNotificationData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { MigrationInterface, QueryRunner } from 'typeorm';

export class CleanNotificationData1734992798452 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
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<void> {}
}

0 comments on commit 7d9addb

Please sign in to comment.