chore(): Accept an extra agument 'all-or-nothing' on the migrate command (#14262)
* chore(): Accept an extra agument 'all-or-nothing' on the migrate command * Create rich-camels-brush.md * chore(): Accept an extra agument 'all-or-nothing' on the migrate command * chore(): Accept an extra agument 'all-or-nothing' on the migrate command * chore(): Accept an extra agument 'all-or-nothing' on the migrate command * chore(): fix broken down migrations * chore(): update changeset
This commit is contained in:
@@ -62,12 +62,6 @@ export class Migration20241211074630 extends Migration {
|
||||
this.addSql(
|
||||
'alter table if exists "customer_group_customer" drop column if exists "deleted_at";'
|
||||
)
|
||||
this.addSql(
|
||||
'alter table if exists "customer_group_customer" add constraint "customer_group_customer_customer_group_id_foreign" foreign key ("customer_group_id") references "customer_group" ("id") on delete cascade;'
|
||||
)
|
||||
this.addSql(
|
||||
'alter table if exists "customer_group_customer" add constraint "customer_group_customer_customer_id_foreign" foreign key ("customer_id") references "customer" ("id") on delete cascade;'
|
||||
)
|
||||
this.addSql(
|
||||
'create index if not exists "IDX_customer_group_customer_group_id" on "customer_group_customer" ("customer_group_id");'
|
||||
)
|
||||
|
||||
@@ -28,9 +28,6 @@ export class Migration20250910154539 extends Migration {
|
||||
this.addSql(`drop index if exists "IDX_product_image_url";`)
|
||||
this.addSql(`drop index if exists "IDX_product_image_rank";`)
|
||||
this.addSql(`drop index if exists "IDX_product_image_url_rank_product_id";`)
|
||||
this.addSql(
|
||||
`alter table if exists "image" drop constraint if exists "image_pkey";`
|
||||
)
|
||||
this.addSql(`drop index if exists "IDX_product_image_rank_product_id";`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,9 +21,5 @@ export class Migration20250226130616 extends Migration {
|
||||
this.addSql(
|
||||
`CREATE INDEX IF NOT EXISTS "IDX_promotion_code" ON "promotion" (code) WHERE deleted_at IS NULL;`
|
||||
)
|
||||
|
||||
this.addSql(
|
||||
'alter table if exists "promotion" add constraint "IDX_promotion_code_unique" unique ("code");'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user