CLOUDSTACK-1216: insert UUID when we create "admin" user in DB.

This commit is contained in:
Min Chen 2013-02-08 14:15:15 -08:00
parent a92968cbd3
commit 1cf85aa87a

View File

@ -374,8 +374,8 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
}
// now insert the user
insertSql = "INSERT INTO `cloud`.`user` (id, username, password, account_id, firstname, lastname, created, state, region_id) " +
"VALUES (" + id + ",'" + username + "', RAND(), 2, '" + firstname + "','" + lastname + "',now(), 'disabled', '1')";
insertSql = "INSERT INTO `cloud`.`user` (id, uuid, username, password, account_id, firstname, lastname, created, state, region_id) " +
"VALUES (" + id + ", UUID(), '" + username + "', RAND(), 2, '" + firstname + "','" + lastname + "',now(), 'disabled', '1')";
txn = Transaction.currentTxn();
try {