Files
dmenu-api/database/migrations/Migration20260726120000_addEnableAiChatToRestaurants.ts
T
morteza 40e78b4ccd
deploy to danak / build_and_deploy (push) Has been cancelled
add enable chat
2026-07-26 12:27:38 +03:30

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";`);
}
}