From 06cf35df1a1905ef411bd3271f863afdca4e94d3 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Fri, 24 Jul 2015 14:34:31 +0200 Subject: [PATCH] Updated database schema to be strict mode compatible --- Config/Schema/schema.php | 2 +- Test/Fixture/QueuedTaskFixture.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/Schema/schema.php b/Config/Schema/schema.php index f85ef68..4ba0cdc 100644 --- a/Config/Schema/schema.php +++ b/Config/Schema/schema.php @@ -27,7 +27,7 @@ public function after($event = array()) { 'not_before' => array('type' => 'datetime', 'null' => false, 'default' => null), 'fetched' => array('type' => 'datetime', 'null' => true, 'default' => null), 'completed' => array('type' => 'datetime', 'null' => true, 'default' => null, 'key' => 'index'), - 'failed_count' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'unsigned' => true), + 'failed_count' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'unsigned' => true), 'failure_message' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'worker_key' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 40, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'created' => array('type' => 'datetime', 'null' => false, 'default' => null), diff --git a/Test/Fixture/QueuedTaskFixture.php b/Test/Fixture/QueuedTaskFixture.php index 0ea39e4..86b7a87 100644 --- a/Test/Fixture/QueuedTaskFixture.php +++ b/Test/Fixture/QueuedTaskFixture.php @@ -17,7 +17,7 @@ class QueuedTaskFixture extends CakeTestFixture { 'not_before' => array('type' => 'datetime', 'null' => false, 'default' => null), 'fetched' => array('type' => 'datetime', 'null' => true, 'default' => null), 'completed' => array('type' => 'datetime', 'null' => true, 'default' => null, 'key' => 'index'), - 'failed_count' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'unsigned' => true), + 'failed_count' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'unsigned' => true), 'failure_message' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'worker_key' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 40, 'key' => 'index', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'created' => array('type' => 'datetime', 'null' => false, 'default' => null),