15 lines
382 B
TypeScript
15 lines
382 B
TypeScript
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;`);
|
|
|
|
}
|
|
|
|
}
|