fix review table migration
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-15 12:39:53 +03:30
parent 204b4f2007
commit 4abc2ae6e5
2 changed files with 19 additions and 0 deletions
@@ -8,6 +8,8 @@ export class Migration20260715083002_task extends Migration {
this.addSql(`drop index "reviews_order_id_index";`);
this.addSql(`alter table "reviews" drop constraint "reviews_order_id_food_id_user_id_unique";`);
this.addSql(`alter table "reviews" drop column "order_id";`);
this.addSql(`alter table "reviews" add column "is_buyer" boolean not null default false;`);
this.addSql(`alter table "reviews" add constraint "reviews_food_id_user_id_unique" unique ("food_id", "user_id");`);
}