Commit e828470b authored by Dries's avatar Dries

- Patch #42088 by Cvbge: fixed problem with input formats gettin lost when upgrading.

parent df631e3c
......@@ -749,7 +749,7 @@ function system_update_146() {
timestamp integer NOT NULL default '0',
format int NOT NULL default '0',
PRIMARY KEY (nid,vid))");
$ret[] = update_sql("INSERT INTO {node_revisions}
$ret[] = update_sql("INSERT INTO {node_revisions} (nid, vid, uid, title, body, teaser, timestamp, format)
SELECT nid, nid AS vid, uid, title, body, teaser, changed AS timestamp, format
FROM {node}");
$ret[] = update_sql('CREATE INDEX {node_revisions}_uid_idx ON {node_revisions}(uid)');
......
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