diff --git a/lib/Config/Migrator.php b/lib/Config/Migrator.php index 09db0bc205..3d7f2e0e6a 100644 --- a/lib/Config/Migrator.php +++ b/lib/Config/Migrator.php @@ -131,7 +131,7 @@ class Migrator { 'task_id int(11) unsigned NOT NULL,', 'subscriber_id int(11) unsigned NOT NULL,', 'processed int(1) NOT NULL,', - 'failed int(1) NOT NULL,', + 'failed int(1) NOT NULL DEFAULT 0,', 'error text NULL,', 'created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,', 'PRIMARY KEY (task_id, subscriber_id),', diff --git a/tests/unit/Models/CustomFieldTest.php b/tests/unit/Models/CustomFieldTest.php index e464347028..3df401e655 100644 --- a/tests/unit/Models/CustomFieldTest.php +++ b/tests/unit/Models/CustomFieldTest.php @@ -112,6 +112,7 @@ class CustomFieldTest extends \MailPoetTest { $association = SubscriberCustomField::create(); $association->subscriber_id = $subscriber->id; $association->custom_field_id = $this->custom_field->id; + $association->value = ''; $association->save(); } $custom_field = CustomField::findOne($this->custom_field->id);