clipbucket/upload/cb_install/sql/upgrade_2.8.3.sql
2017-05-16 13:14:26 +05:00

16 lines
No EOL
770 B
SQL

-- 2.8
-- Adding new user level permission
-- Author Awais
ALTER TABLE `{tbl_prefix}user_levels_permissions` ADD `allow_create_collection` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes' AFTER `allow_manage_user_level`;
ALTER TABLE `{tbl_prefix}user_levels_permissions` ADD `allow_create_playlist` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'yes' AFTER `allow_create_collection`;
INSERT INTO `{tbl_prefix}user_permissions` (
`permission_id` ,
`permission_type` ,
`permission_name` ,
`permission_code` ,
`permission_desc` ,
`permission_default`
)VALUES(
NULL , '2', 'Allow create collection', 'allow_create_collection', 'Allow users to create collection', 'yes'), (
NULL , '2', 'Allow create playlist', 'allow_create_playlist', 'Allow users to create playlist', 'yes');