This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
|
||||
export class Migration20260629083652_phonesRestuarant extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table "restaurants" add column "phones" jsonb null;`);
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table "restaurants" add column "phone" varchar(255) null;`);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user