import { Migration } from "@mikro-orm/migrations";
class Migration20260427124900 extends Migration {
  up() {
    this.addSql(`alter table "sidebar_variants" drop constraint if exists "sidebar_variants_user_id_tenant_id_locale_name_unique";`);
    this.addSql(`create unique index if not exists "sidebar_variants_active_name_unique_idx" on "sidebar_variants" ("user_id", "tenant_id", "locale", "name") where "deleted_at" is null;`);
  }
  down() {
    this.addSql(`drop index if exists "sidebar_variants_active_name_unique_idx";`);
    this.addSql(`alter table "sidebar_variants" add constraint "sidebar_variants_user_id_tenant_id_locale_name_unique" unique ("user_id", "tenant_id", "locale", "name");`);
  }
}
export {
  Migration20260427124900
};
//# sourceMappingURL=Migration20260427124900.js.map
