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



$migrations->Run('01_add_cdn_utility_logs_table.php', <<<'DB_UPDATE_FILE'
<?php
/**
 * @var \Claromentis\Setup\SetupFacade $migrations
 */
$db = $migrations->GetDb();

$db->CreateTable('cdn_utility_logs', array(
	'id'        => "IDENTITY",
	'dt'        => "INT_DATE NOT_NULL DEFAULT 0",
	'log_level' => "VARCHAR(16) NULL",
	'channel'   => "VARCHAR(64) NULL",
	'message'   => "CLOB NULL",
	'context'   => "CLOB NULL",
	'extra'     => "CLOB NULL",
));

DB_UPDATE_FILE
);


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