Răsfoiți Sursa

#252 OAuth2: install problem

Alex Trofimov 10 ani în urmă
părinte
comite
846cfca0bc

+ 0 - 2
modules/boonex/oauth2/install/sql/disable.sql

@@ -1,6 +1,4 @@
 
-TRUNCATE TABLE `bx_oauth_scopes`;
-
 -- GRID
 
 DELETE FROM `sys_objects_grid` WHERE `object` = 'bx_oauth';

+ 0 - 4
modules/boonex/oauth2/install/sql/enable.sql

@@ -1,8 +1,4 @@
 
-INSERT INTO `bx_oauth_scopes` (`scope`, `is_default`) VALUES
-('basic', 1),
-('service', 0);
-
 -- GRID
 
 INSERT INTO `sys_objects_grid` (`object`, `source_type`, `source`, `table`, `field_id`, `field_order`, `paginate_url`, `paginate_per_page`, `paginate_simple`, `paginate_get_start`, `paginate_get_per_page`, `filter_fields`, `filter_mode`, `sorting_fields`, `override_class_name`, `override_class_file`) VALUES

+ 4 - 0
modules/boonex/oauth2/install/sql/install.sql

@@ -47,6 +47,10 @@ CREATE TABLE IF NOT EXISTS `bx_oauth_scopes` (
   `is_default` tinyint(1) DEFAULT NULL
 );
 
+INSERT INTO `bx_oauth_scopes` (`scope`, `is_default`) VALUES
+('basic', 1),
+('service', 0);
+
 -- Studio page and widget
 
 INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES