Commit cc8d47a9 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#176429: JirkaRybka: two queries were missing curly braces in system.install

parent 38266410
......@@ -3234,10 +3234,10 @@ function system_update_6019() {
// Remove default => 0, set auto increment.
$new_uid = 1 + db_result(db_query('SELECT MAX(uid) FROM {users}'));
$ret[] = update_sql('UPDATE users SET uid = '. $new_uid . ' WHERE uid = 0');
$ret[] = update_sql('UPDATE {users} SET uid = '. $new_uid . ' WHERE uid = 0');
db_drop_primary_key($ret, 'users');
db_change_field($ret, 'users', 'uid', 'uid', array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE), array('primary key' => array('uid')));
$ret[] = update_sql('UPDATE users SET uid = 0 WHERE uid = '. $new_uid);
$ret[] = update_sql('UPDATE {users} SET uid = 0 WHERE uid = '. $new_uid);
// Special field names.
$map = array('node_revisions' => 'vid');
......
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