mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 18:13:26 +00:00
Add season number and episode number to progressitem
This commit is contained in:
14
src/db/migrations/Migration20231105150807.ts
Normal file
14
src/db/migrations/Migration20231105150807.ts
Normal 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";');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user