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



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

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

// To avoid lots of old notifications being sent when this fix kicks in, reset them now.
$db->query('UPDATE blog_post set notification_sent = 1');

DB_UPDATE_FILE
);


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