This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
|
||||
export class Migration20260604120121 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table "business" alter column "quota" type bigint using ("quota"::bigint);`);
|
||||
this.addSql(`alter table "business" alter column "quota" set default 10737418240;`);
|
||||
this.addSql(`alter table "business" alter column "remaining_quota" type bigint using ("remaining_quota"::bigint);`);
|
||||
this.addSql(`alter table "business" alter column "remaining_quota" set default 10737418240;`);
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table "business" alter column "quota" type int8 using ("quota"::int8);`);
|
||||
this.addSql(`alter table "business" alter column "quota" set default '10737418240';`);
|
||||
this.addSql(`alter table "business" alter column "remaining_quota" type int8 using ("remaining_quota"::int8);`);
|
||||
this.addSql(`alter table "business" alter column "remaining_quota" set default '10737418240';`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user