<?php
declare(strict_types=1);

return [
    'up' => "ALTER TABLE `player_medical_records`
ADD COLUMN `certificate_type` VARCHAR(30) NULL DEFAULT 'recreational' COMMENT 'recreational, academy, international' AFTER `record_type`,
ADD COLUMN `validity_months` INT UNSIGNED NULL AFTER `certificate_type`,
ADD COLUMN `issuing_authority` VARCHAR(300) NULL AFTER `clinic_name`,
ADD COLUMN `cert_number` VARCHAR(100) NULL AFTER `issuing_authority`",
    'down' => "ALTER TABLE `player_medical_records`
DROP COLUMN `cert_number`,
DROP COLUMN `issuing_authority`,
DROP COLUMN `validity_months`,
DROP COLUMN `certificate_type`",
];
