14 lines
417 B
TypeScript
14 lines
417 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20260626120000 extends Migration {
|
|
|
|
override async up(): Promise<void> {
|
|
this.addSql(`alter table "requests" drop column if exists "status";`);
|
|
}
|
|
|
|
override async down(): Promise<void> {
|
|
this.addSql(`alter table "requests" add column "status" text check ("status" in ('pending', 'invoiced')) not null default 'pending';`);
|
|
}
|
|
|
|
}
|