This commit is contained in:
2026-07-17 10:18:39 +03:30
parent 4abc2ae6e5
commit 443b62eb8e
10 changed files with 214 additions and 20 deletions
@@ -0,0 +1,13 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20260716123000_nullableReviewUserForReplies extends Migration {
override async up(): Promise<void> {
this.addSql(`alter table "reviews" alter column "user_id" drop not null;`);
}
override async down(): Promise<void> {
this.addSql(`alter table "reviews" alter column "user_id" set not null;`);
}
}