This commit is contained in:
Bastian Wagner
2026-06-17 10:34:30 +02:00
parent 3998923693
commit f77a592fc8
21 changed files with 637 additions and 6 deletions

View File

@@ -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`');
}
}