Skip to content

Commit 0c5f036

Browse files
committed
Re add script removed by mistake
1 parent adbb552 commit 0c5f036

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41810to41900.sql

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,31 @@ ALTER TABLE `cloud`.`snapshot_store_ref`
196196
ADD COLUMN `error_str` varchar(255) DEFAULT NULL COMMENT 'the error message when the snapshot download occurs' AFTER `download_pct`,
197197
ADD COLUMN `local_path` varchar(255) DEFAULT NULL COMMENT 'the path of the snapshot download' AFTER `error_str`,
198198
ADD COLUMN `display` tinyint(1) unsigned NOT NULL DEFAULT 1 COMMENT '1 implies store reference is available for listing' AFTER `error_str`;
199+
200+
UPDATE `cloud`.`configuration` SET
201+
`options` = concat(`options`, ',OAUTH2'),
202+
`default_value` = concat(`default_value`, ',OAUTH2'),
203+
`value` = concat(`value`, ',OAUTH2')
204+
WHERE `name` = 'user.authenticators.order' ;
205+
206+
UPDATE `cloud`.`configuration` SET
207+
`options` = concat(`options`, ',OAUTH2Auth'),
208+
`default_value` = concat(`default_value`, ',OAUTH2Auth'),
209+
`value` = concat(`value`, ',OAUTH2Auth')
210+
where `name` = 'pluggableApi.authenticators.order' ;
211+
212+
-- Create table for OAuth provider details
213+
DROP TABLE IF EXISTS `cloud`.`oauth_provider`;
214+
CREATE TABLE `cloud`.`oauth_provider` (
215+
`id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
216+
`uuid` varchar(40) NOT NULL COMMENT 'unique identifier',
217+
`description` varchar(1024) COMMENT 'description of the provider',
218+
`provider` varchar(40) NOT NULL COMMENT 'name of the provider',
219+
`client_id` varchar(255) NOT NULL COMMENT 'client id which is configured in the provider',
220+
`secret_key` varchar(255) NOT NULL COMMENT 'secret key which is configured in the provider',
221+
`redirect_uri` varchar(255) NOT NULL COMMENT 'redirect uri which is configured in the provider',
222+
`enabled` int(1) NOT NULL DEFAULT 1 COMMENT 'Enabled or disabled',
223+
`created` datetime NOT NULL COMMENT 'date created',
224+
`removed` datetime COMMENT 'date removed if not null',
225+
PRIMARY KEY (`id`)
226+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 commit comments

Comments
 (0)