@@ -1955,15 +1955,6 @@
|
||||
"length": 26,
|
||||
"mappedType": "character"
|
||||
},
|
||||
"quantity": {
|
||||
"name": "quantity",
|
||||
"type": "int",
|
||||
"unsigned": false,
|
||||
"autoincrement": false,
|
||||
"primary": false,
|
||||
"nullable": false,
|
||||
"mappedType": "integer"
|
||||
},
|
||||
"description": {
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Migration } from '@mikro-orm/migrations';
|
||||
|
||||
export class Migration20260626160000 extends Migration {
|
||||
|
||||
override async up(): Promise<void> {
|
||||
this.addSql(`alter table "request_items" drop column "quantity";`);
|
||||
}
|
||||
|
||||
override async down(): Promise<void> {
|
||||
this.addSql(`alter table "request_items" add column "quantity" int not null default 1;`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user