This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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";`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user