<?php
declare(strict_types=1);

return [
    'up' => "
        ALTER TABLE `business_rules` DROP INDEX `uq_business_rules_code_branch`;
        ALTER TABLE `business_rules` ADD UNIQUE KEY `uq_business_rules_code_branch_date` (`rule_code`, `branch_id`, `effective_from`)
    ",
    'down' => "
        ALTER TABLE `business_rules` DROP INDEX `uq_business_rules_code_branch_date`;
        ALTER TABLE `business_rules` ADD UNIQUE KEY `uq_business_rules_code_branch` (`rule_code`, `branch_id`)
    ",
];
