Revision dafbc5d3 src/datastore/Datastore.cc

View differences:

src/datastore/Datastore.cc
24 24
const char * Datastore::table = "datastore_pool";
25 25

  
26 26
const char * Datastore::db_names =
27
        "oid, name, body, uid, gid, owner_u, group_u, other_u";
27
        "oid, name, body, uid, gid, owner_u, group_u, other_u, cid";
28 28

  
29 29
const char * Datastore::db_bootstrap =
30 30
    "CREATE TABLE IF NOT EXISTS datastore_pool ("
31 31
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
32 32
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
33
    "UNIQUE(name))";
33
    "cid INTEGER, UNIQUE(name))";
34 34

  
35 35
/* ************************************************************************ */
36 36
/* Datastore :: Constructor/Destructor                                      */
......
265 265
        <<          gid                 << ","
266 266
        <<          owner_u             << ","
267 267
        <<          group_u             << ","
268
        <<          other_u             << ")";
268
        <<          other_u             << ","
269
        <<          cluster_id          << ")";
269 270

  
270 271

  
271 272
    rc = db->exec(oss);

Also available in: Unified diff