Commit 16c0f194 authored by Mahmoud Aglan's avatar Mahmoud Aglan

xdgfhjdfghj

parent 566d99b6
<?php
declare(strict_types=1);
return function (\App\Core\Database $db): void {
$table = 'death_cases';
$col = 'children_assignment_json';
$exists = $db->selectOne(
"SELECT 1 FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = ? AND column_name = ?",
[$table, $col]
);
if (!$exists) {
$db->raw("ALTER TABLE `{$table}` ADD COLUMN `{$col}` JSON NULL AFTER `primary_spouse_form_filled`");
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment