1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

feature #206: Host table creation redefinition (only Sqlite compilant), host uniqueness defined by hostname and mads)

This commit is contained in:
Constantino Vázquez Blanco 2010-04-27 13:16:42 +02:00
parent 4d0d92ec46
commit 26c3d5b331

View File

@ -56,8 +56,9 @@ const char * Host::db_names = "(oid,host_name,state,im_mad,vm_mad,"
"tm_mad,last_mon_time)";
const char * Host::db_bootstrap = "CREATE TABLE host_pool ("
"oid INTEGER PRIMARY KEY,host_name TEXT,state INTEGER,"
"im_mad TEXT,vm_mad TEXT,tm_mad TEXT,last_mon_time INTEGER)";
"oid INTEGER PRIMARY KEY,host_name TEXT,state INTEGER,"
"im_mad TEXT,vm_mad TEXT,tm_mad TEXT,last_mon_time INTEGER, "
"UNIQUE(host_name, im_mad, vm_mad, tm_mad) )";
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */