Skip to content

Commit

Permalink
[HOPSWORKS-2853]-append id token default null (logicalclocks#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErmiasG authored Jan 20, 2022
1 parent 4b693eb commit 4a77ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/default/sql/ddl/2.5.0__initial_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ CREATE TABLE `oauth_login_state` (
`session_id` varchar(128) COLLATE latin1_general_cs NOT NULL,
`client_id` varchar(256) COLLATE latin1_general_cs NOT NULL,
`login_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`id_token` varchar(8000) COLLATE latin1_general_cs NOT NULL,
`id_token` varchar(8000) COLLATE latin1_general_cs DEFAULT NULL,
`access_token` varchar(8000) COLLATE latin1_general_cs DEFAULT NULL,
`refresh_token` varchar(8000) COLLATE latin1_general_cs DEFAULT NULL,
`nonce` varchar(128) COLLATE latin1_general_cs NOT NULL,
Expand Down
4 changes: 2 additions & 2 deletions files/default/sql/ddl/updates/2.5.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ CREATE TABLE `hopsworks`.`oauth_token` (
CONSTRAINT `fk_oauth_token_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`uid`) ON DELETE CASCADE
) ENGINE=ndbcluster DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;

ALTER TABLE `hopsworks`.`oauth_login_state` ADD COLUMN `id_token` VARCHAR(8000) NULL;
ALTER TABLE `hopsworks`.`oauth_login_state` ADD COLUMN `refresh_token` VARCHAR(8000) NULL;
ALTER TABLE `hopsworks`.`oauth_login_state` ADD COLUMN `id_token` VARCHAR(8000) COLLATE latin1_general_cs DEFAULT NULL;
ALTER TABLE `hopsworks`.`oauth_login_state` ADD COLUMN `refresh_token` VARCHAR(8000) COLLATE latin1_general_cs DEFAULT NULL;
ALTER TABLE `hopsworks`.`oauth_login_state` RENAME COLUMN `token` TO `access_token`;

ALTER TABLE `hopsworks`.`feature_store_statistic` ADD COLUMN `for_transformation` TINYINT(1) DEFAULT '0';
Expand Down

0 comments on commit 4a77ad8

Please sign in to comment.