14 lines
409 B
TypeScript
14 lines
409 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20260704130000_removeRestaurantCreditColumn extends Migration {
|
|
|
|
override async up(): Promise<void> {
|
|
this.addSql(`alter table "restaurants" drop column if exists "credit";`);
|
|
}
|
|
|
|
override async down(): Promise<void> {
|
|
this.addSql(`alter table "restaurants" add column "credit" numeric(10,0) not null default 0;`);
|
|
}
|
|
|
|
}
|