<?php
declare(strict_types=1);

return [
    'up' => "
ALTER TABLE `payments` ADD COLUMN `treasury_id` BIGINT UNSIGNED NULL AFTER `received_by_employee_id`;
ALTER TABLE `payments` ADD COLUMN `session_id` BIGINT UNSIGNED NULL AFTER `treasury_id`;
ALTER TABLE `payments` ADD INDEX `idx_payments_treasury` (`treasury_id`);
ALTER TABLE `payments` ADD INDEX `idx_payments_session` (`session_id`)
",
    'down' => "
ALTER TABLE `payments` DROP INDEX `idx_payments_session`;
ALTER TABLE `payments` DROP INDEX `idx_payments_treasury`;
ALTER TABLE `payments` DROP COLUMN `session_id`;
ALTER TABLE `payments` DROP COLUMN `treasury_id`
",
];
