mirror of https://github.com/apache/cloudstack.git
schema-451to452: Re-add SAML SQL changes reverted in 5ea1a89
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
56707ad01f
commit
389b041994
|
|
@ -19,13 +19,22 @@
|
|||
-- Schema upgrade from 4.5.1 to 4.5.2;
|
||||
--;
|
||||
|
||||
UPDATE IGNORE `cloud`.`configuration` SET `default_value`='PBKDF2,SHA256SALT,MD5,LDAP,SAML2,PLAINTEXT' WHERE name='user.authenticators.order';
|
||||
UPDATE IGNORE `cloud`.`configuration` SET `value`='PBKDF2,SHA256SALT,MD5,LDAP,SAML2,PLAINTEXT' WHERE name='user.authenticators.order';
|
||||
UPDATE IGNORE `cloud`.`configuration` SET `default_value`='PBKDF2,SHA256SALT,MD5,LDAP,SAML2,PLAINTEXT' WHERE name='user.password.encoders.order';
|
||||
UPDATE IGNORE `cloud`.`configuration` SET `value`='PBKDF2,SHA256SALT,MD5,LDAP,SAML2,PLAINTEXT' WHERE name='user.password.encoders.order';
|
||||
UPDATE IGNORE `cloud`.`configuration` SET `value`="MD5,LDAP,PLAINTEXT" WHERE `name`="user.password.encoders.exclude";
|
||||
ALTER TABLE `cloud`.`user` ADD COLUMN `source` varchar(40) NOT NULL DEFAULT 'UNKNOWN';
|
||||
-- SAML
|
||||
|
||||
DELETE FROM `cloud`.`configuration` WHERE name like 'saml%';
|
||||
|
||||
ALTER TABLE `cloud`.`user` ADD COLUMN `external_entity` text DEFAULT NULL COMMENT "reference to external federation entity";
|
||||
|
||||
DROP TABLE IF EXISTS `cloud`.`saml_token`;
|
||||
CREATE TABLE `cloud`.`saml_token` (
|
||||
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uuid` varchar(255) UNIQUE NOT NULL COMMENT 'The Authn Unique Id',
|
||||
`domain_id` bigint unsigned DEFAULT NULL,
|
||||
`entity` text NOT NULL COMMENT 'Identity Provider Entity Id',
|
||||
`created` DATETIME NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `fk_saml_token__domain_id` FOREIGN KEY(`domain_id`) REFERENCES `domain`(`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
-- Quota Configuration
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue