14 lines
424 B
TypeScript
14 lines
424 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20260726120000_addEnableAiChatToRestaurants extends Migration {
|
|
override async up(): Promise<void> {
|
|
this.addSql(
|
|
`alter table "restaurants" add column "enable_ai_chat" boolean not null default false;`,
|
|
);
|
|
}
|
|
|
|
override async down(): Promise<void> {
|
|
this.addSql(`alter table "restaurants" drop column "enable_ai_chat";`);
|
|
}
|
|
}
|