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



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

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

$db->AddColumn('quiz', 'is_new', "BOOL NULL DEFAULT 0");
$db->AddColumn('quiz', 'notification_sent', "BOOL NULL DEFAULT 1");

DB_UPDATE_FILE
);


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