review
This commit is contained in:
@@ -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;`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user