mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #4217: Add new default acl rule to onedb migrator
This commit is contained in:
parent
e47735acff
commit
0be11d33c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user