1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5025: Use user_oid column in acl table (#147)

Fix regression
This commit is contained in:
Jan Orel 2020-08-11 11:13:51 +02:00 committed by GitHub
parent 876006653a
commit d5f4153422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,11 +145,11 @@ namespace one_db
/* ---------------------------------------------------------------------- */
const char * acl_table = "acl";
const char * acl_db_names = "oid, user, resource, rights, zone";
const char * acl_db_names = "oid, user_oid, resource, rights, zone";
const char * acl_db_bootstrap = "CREATE TABLE IF NOT EXISTS "
"acl (oid INT PRIMARY KEY, user BIGINT, resource BIGINT, "
"rights BIGINT, zone BIGINT, UNIQUE(user, resource, rights, zone))";
"acl (oid INT PRIMARY KEY, user_oid BIGINT, resource BIGINT, "
"rights BIGINT, zone BIGINT, UNIQUE(user_oid, resource, rights, zone))";
/* ---------------------------------------------------------------------- */
/* Datastore tables */