mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
Feature #4217: Add new default acl rule to onedb migrator
This commit is contained in:
1 parent
e47735acff
commit
0be11d33c2
1 file changed
+11
@@ -160,6 +160,17 @@ module Migrator
|
||||
|
||||
@db.run "CREATE TABLE marketplaceapp_pool (oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, UNIQUE(name,uid));"
|
||||
|
||||
last_oid = -1
|
||||
|
||||
@db.fetch("SELECT last_oid FROM pool_control WHERE tablename='acl'") do |row|
|
||||
last_oid = row[:last_oid].to_i
|
||||
end
|
||||
|
||||
# * MARKETPLACE+MARKETPLACEAPP/* USE *
|
||||
@db.run "INSERT INTO acl VALUES(#{last_oid+1},17179869184,6755416620924928,1,17179869184);"
|
||||
|
||||
@db.run "REPLACE INTO pool_control VALUES('acl', #{last_oid+1});"
|
||||
|
||||
log_time()
|
||||
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user