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



$migrations->Run('01_add_question_mandatory_column.php', <<<'DB_UPDATE_FILE'
<?php

/** @var \Claromentis\Setup\SetupFacade $migrations */
$db = $migrations->GetDb();

$db->AddColumn('quiz_question', 'is_mandatory', "BOOL NULL DEFAULT 0");

DB_UPDATE_FILE
);


$migrations->Run('202405221340_add_notify_users_column.php', <<<'DB_UPDATE_FILE'
<?php
/**
 * @var $migrations \Claromentis\Setup\SetupFacade
 */

$db = $migrations->GetDb();
$db->AddColumn('quiz', 'notify_users', 'BOOL NOT_NULL DEFAULT 0');

DB_UPDATE_FILE
);


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