Add season number and episode number to progressitem

This commit is contained in:
William Oldham
2023-11-05 15:13:09 +00:00
parent 53801f926a
commit 01c96babd4
4 changed files with 62 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20231105150807 extends Migration {
async up(): Promise<void> {
this.addSql(
'alter table "progress_items" add column "season_number" int null, add column "episode_number" int null;',
);
}
async down(): Promise<void> {
this.addSql('alter table "progress_items" drop column "season_number";');
this.addSql('alter table "progress_items" drop column "episode_number";');
}
}