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

feature #3183: Add a new column to VNET table to include the parent VNET (pid)

This commit is contained in:
Ruben S. Montero 2014-09-23 12:46:52 +02:00
parent 6e385cfa73
commit b5b22ced39

View File

@ -89,13 +89,13 @@ void VirtualNetwork::get_permissions(PoolObjectAuth& auths)
const char * VirtualNetwork::table = "network_pool";
const char * VirtualNetwork::db_names =
"oid, name, body, uid, gid, owner_u, group_u, other_u, cid";
"oid, name, body, uid, gid, owner_u, group_u, other_u, cid, pid";
const char * VirtualNetwork::db_bootstrap = "CREATE TABLE IF NOT EXISTS"
" network_pool (oid INTEGER PRIMARY KEY, name VARCHAR(128),"
" body MEDIUMTEXT, uid INTEGER, gid INTEGER,"
" owner_u INTEGER, group_u INTEGER, other_u INTEGER,"
" cid INTEGER, UNIQUE(name,uid))";
" cid INTEGER, pid INTEGER, UNIQUE(name,uid))";
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
@ -354,7 +354,8 @@ int VirtualNetwork::insert_replace(SqlDB *db, bool replace, string& error_str)
<< owner_u << ","
<< group_u << ","
<< other_u << ","
<< cluster_id << ")";
<< cluster_id << ","
<< parent_vid << ")";
rc = db->exec(oss);