Commit 31c0b960 authored by yched's avatar yched

#125185 - fix miner error in update_1004.

parent 09e7b0fd
...@@ -280,7 +280,9 @@ function content_update_10() { ...@@ -280,7 +280,9 @@ function content_update_10() {
while ($row = db_fetch_array($result)) { while ($row = db_fetch_array($result)) {
$fields[] = "'". $row['field_name'] ."'"; $fields[] = "'". $row['field_name'] ."'";
} }
if ($fields) {
$ret[] = update_sql("DELETE FROM {node_field} WHERE field_name NOT IN (". implode(', ', $fields) .")"); $ret[] = update_sql("DELETE FROM {node_field} WHERE field_name NOT IN (". implode(', ', $fields) .")");
}
// set invalid 'per field storage' back to 'per content type' // set invalid 'per field storage' back to 'per content type'
$result = db_query("SELECT field_name FROM {node_field} WHERE multiple = 0 AND db_storage = %d", CONTENT_DB_STORAGE_PER_FIELD); $result = db_query("SELECT field_name FROM {node_field} WHERE multiple = 0 AND db_storage = %d", CONTENT_DB_STORAGE_PER_FIELD);
......
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