Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
link
Commits
65f879e2
Commit
65f879e2
authored
Jan 14, 2007
by
Nathan Haug
Browse files
Fixes mySQL 5 compatibility. mediumtext cannot have a default value. Issue #107804. Thanks Frando.
parent
ab70f2ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
link.install
link.install
+1
-1
link.module
link.module
+1
-1
No files found.
link.install
View file @
65f879e2
...
...
@@ -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
);
...
...
link.module
View file @
65f879e2
...
...
@@ -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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment