import { Migration } from "@mikro-orm/migrations";
class Migration20260417140000 extends Migration {
  async up() {
    this.addSql(`alter table "customer_person_company_links" drop constraint if exists "customer_person_company_links_unique";`);
    this.addSql(`create unique index "customer_person_company_links_active_unique" on "customer_person_company_links" ("person_entity_id", "company_entity_id") where "deleted_at" is null;`);
  }
  async down() {
    this.addSql(`drop index if exists "customer_person_company_links_active_unique";`);
    this.addSql(`alter table "customer_person_company_links" add constraint "customer_person_company_links_unique" unique ("person_entity_id", "company_entity_id");`);
  }
}
export {
  Migration20260417140000
};
//# sourceMappingURL=Migration20260417140000.js.map
