Commit 65f879e2 authored by Nathan Haug's avatar Nathan Haug
Browse files

Fixes mySQL 5 compatibility. mediumtext cannot have a default value. Issue #107804. Thanks Frando.

parent ab70f2ac
......@@ -25,7 +25,7 @@ function link_update_1() {
$columns = array(
'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''"),
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''"),
'attributes' => array('type' => 'mediumtext', 'not null' => TRUE, 'default' => "''"),
'attributes' => array('type' => 'mediumtext', 'not null' => FALSE),
);
content_alter_db_field(array(), array(), $field, $columns);
$db_info = content_database_info($field);
......
......@@ -79,7 +79,7 @@ function link_field_settings($op, $field) {
return array(
'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''"),
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''"),
'attributes' => array('type' => 'mediumtext', 'not null' => TRUE, 'default' => "''"),
'attributes' => array('type' => 'mediumtext', 'not null' => FALSE),
);
case 'filters':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment