14 lines
371 B
TypeScript
14 lines
371 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20260701120000_addPrepareTimeToOrders extends Migration {
|
|
|
|
override async up(): Promise<void> {
|
|
this.addSql(`alter table "orders" add column "prepare_time" int null;`);
|
|
}
|
|
|
|
override async down(): Promise<void> {
|
|
this.addSql(`alter table "orders" drop column "prepare_time";`);
|
|
}
|
|
|
|
}
|