Closed (fixed)
Project:
Longer Node Titles
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
14 Dec 2007 at 13:47 UTC
Updated:
2 Jan 2008 at 13:22 UTC
The correct install code should be:
function longer_titles_install() {
$result = db_query("ALTER TABLE {node} CHANGE 'title' VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;");
$result = db_query("ALTER TABLE {node_revisions} CHANGE 'title' VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;");
The column name needed to be in quotes. And table names are supposed to be in curly brackets.
Note: you need to change the "node_revisions" table as well.
Comments
Comment #1
nancydruFix committed.
Comment #2
dwoods commentedHi,
It still fails for me. I think the install should be:
Comment #3
nancydruActually it appears that the quotes should not be there. I removed them and the character set (in case you want something else). It now works correctly for me. The fix has been committed - it will take a few hours to roll up.
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.