<?php
$_db_migration_to = '40.32'; // 9.5.6
if (!isset($migrations) || !is_object($migrations))
	die("This file cannot be executed directly");
$migrations->CheckValid($_db_migration_to);
//===========================================================================================



$migrations->Run('20250727_add_column_orgchart_OC-30.php', <<<'DB_UPDATE_FILE'
<?php


/**
 * OC-30 add column to `org_chart_department`
 *
 * @var \Claromentis\Setup\SetupFacade $migrations
 */
$db = $migrations->GetDb();

// add a new column (Mssql won't ALTER a new column without default value)
$db->AddColumn('org_chart_department', 'show_disabled_users', 'INT NOT_NULL DEFAULT 1');

DB_UPDATE_FILE
);


//===========================================================================================
$migrations->SetVersion('40.32');
