import { Migration } from "@mikro-orm/migrations";
class Migration20260105114201 extends Migration {
  async up() {
    this.addSql(`alter table "exchange_rates" drop constraint "exchange_rates_pair_datetime_source_unique";`);
    this.addSql(`alter table "exchange_rates" add constraint "exchange_rates_pair_datetime_source_type_unique" unique ("organization_id", "tenant_id", "from_currency_code", "to_currency_code", "date", "source", "type");`);
  }
  async down() {
    this.addSql(`alter table "exchange_rates" drop constraint "exchange_rates_pair_datetime_source_type_unique";`);
    this.addSql(`alter table "exchange_rates" add constraint "exchange_rates_pair_datetime_source_unique" unique ("organization_id", "tenant_id", "from_currency_code", "to_currency_code", "date", "source");`);
  }
}
export {
  Migration20260105114201
};
//# sourceMappingURL=Migration20260105114201.js.map
