1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-07 16:58:18 +03:00

bug #308: Only hostnames are now unique. Adjusted column sizes.

This commit is contained in:
Ruben S. Montero 2010-08-06 19:55:33 +02:00
parent ae5fd0b3f1
commit 411bad12c3

View File

@ -57,10 +57,10 @@ const char * Host::db_names = "(oid,host_name,state,im_mad,vm_mad,"
"tm_mad,last_mon_time, cluster, template)"; "tm_mad,last_mon_time, cluster, template)";
const char * Host::db_bootstrap = "CREATE TABLE IF NOT EXISTS host_pool (" const char * Host::db_bootstrap = "CREATE TABLE IF NOT EXISTS host_pool ("
"oid INTEGER PRIMARY KEY,host_name VARCHAR(512), state INTEGER," "oid INTEGER PRIMARY KEY,host_name VARCHAR(256), state INTEGER,"
"im_mad VARCHAR(128),vm_mad VARCHAR(128),tm_mad VARCHAR(128)," "im_mad VARCHAR(128),vm_mad VARCHAR(128),tm_mad VARCHAR(128),"
"last_mon_time INTEGER, cluster VARCHAR(128), template TEXT, " "last_mon_time INTEGER, cluster VARCHAR(128), template TEXT, "
"UNIQUE(host_name, im_mad, vm_mad, tm_mad) )"; "UNIQUE(host_name))";
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */