<?php
declare(strict_types=1);

return [
    'up' => "
ALTER TABLE `roles` ADD COLUMN `has_all_branches` TINYINT(1) NOT NULL DEFAULT 0 AFTER `parent_role_id`;
UPDATE `roles` SET `has_all_branches` = 1 WHERE `role_code` IN ('super_admin', 'board_member', 'auditor', 'membership_director')
",
    'down' => "ALTER TABLE `roles` DROP COLUMN `has_all_branches`",
];
