credircard payment

This commit is contained in:
2026-06-15 11:59:52 +03:30
parent 4eedcf2576
commit 278f7accb6
7 changed files with 96 additions and 11 deletions
@@ -0,0 +1,15 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20260615130000_remove_payment_details_from_orders extends Migration {
override async up(): Promise<void> {
this.addSql(`alter table "orders" drop column if exists "payment_description";`);
this.addSql(`alter table "orders" drop column if exists "payment_attachments";`);
}
override async down(): Promise<void> {
this.addSql(`alter table "orders" add column "payment_description" text null;`);
this.addSql(`alter table "orders" add column "payment_attachments" jsonb null;`);
}
}