emails
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddListReminderAt1781400000000 implements MigrationInterface {
|
||||
name = 'AddListReminderAt1781400000000';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE `user_lists` ADD `reminderAt` datetime(3) NULL',
|
||||
);
|
||||
await queryRunner.query(
|
||||
'CREATE INDEX `IDX_user_lists_reminder_at` ON `user_lists` (`reminderAt`)',
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'DROP INDEX `IDX_user_lists_reminder_at` ON `user_lists`',
|
||||
);
|
||||
await queryRunner.query('ALTER TABLE `user_lists` DROP COLUMN `reminderAt`');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user