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

B #5025: Use userset collumn name (#151)

This commit is contained in:
Jan Orel 2020-08-13 11:58:29 +02:00 committed by GitHub
parent f5c77e40fd
commit 1e22db4fb2
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_oid, resource, rights, zone";
const char * acl_db_names = "oid, userset, resource, rights, zone";
const char * acl_db_bootstrap = "CREATE TABLE IF NOT EXISTS "
"acl (oid INT PRIMARY KEY, user_oid BIGINT, resource BIGINT, "
"rights BIGINT, zone BIGINT, UNIQUE(user_oid, resource, rights, zone))";
"acl (oid INT PRIMARY KEY, userset BIGINT, resource BIGINT, "
"rights BIGINT, zone BIGINT, UNIQUE(userset, resource, rights, zone))";
/* ---------------------------------------------------------------------- */
/* Datastore tables */