Fix unit tests failing in MySQL strict mode [MAILPOET-1585]
This commit is contained in:
@@ -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),',
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user