Revision dafbc5d3 src/host/Host.cc

View differences:

src/host/Host.cc
62 62
const char * Host::table = "host_pool";
63 63

  
64 64
const char * Host::db_names =
65
    "oid, name, body, state, last_mon_time, uid, gid, owner_u, group_u, other_u";
65
    "oid, name, body, state, last_mon_time, uid, gid, owner_u, group_u, other_u, cid";
66 66

  
67 67
const char * Host::db_bootstrap = "CREATE TABLE IF NOT EXISTS host_pool ("
68 68
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, state INTEGER, "
69 69
    "last_mon_time INTEGER, uid INTEGER, gid INTEGER, owner_u INTEGER, "
70
    "group_u INTEGER, other_u INTEGER, UNIQUE(name))";
70
    "group_u INTEGER, other_u INTEGER, cid INTEGER, UNIQUE(name))";
71 71

  
72 72

  
73 73
const char * Host::monit_table = "host_monitoring";
......
136 136
        <<          gid                 << ","
137 137
        <<          owner_u             << ","
138 138
        <<          group_u             << ","
139
        <<          other_u             << ")";
139
        <<          other_u             << ","
140
        <<          cluster_id          << ")";
140 141

  
141 142
    rc = db->exec(oss);
142 143

  

Also available in: Unified diff