remove city and prov from user address
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-23 11:47:30 +03:30
parent 7dfd42bd5b
commit 0036e9e97f
10 changed files with 16 additions and 47 deletions
@@ -0,0 +1,16 @@
import { Migration } from '@mikro-orm/migrations';
export class Migration20260623120000_remove_city_province_from_user_addresses extends Migration {
override async up(): Promise<void> {
this.addSql(`alter table "user_addresses" drop column if exists "city";`);
this.addSql(`alter table "user_addresses" drop column if exists "province";`);
}
override async down(): Promise<void> {
this.addSql(`alter table "user_addresses" add column "city" varchar(255) not null default '';`);
this.addSql(`alter table "user_addresses" add column "province" varchar(255) null;`);
this.addSql(`alter table "user_addresses" alter column "city" drop default;`);
}
}