ddl.GrouperDdl_Grouper_30_upgradeTo_31_postgres.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper Show documentation
Show all versions of grouper Show documentation
Internet2 Groups Management Toolkit
CREATE TABLE grouper_config
(
id VARCHAR(40) NOT NULL,
config_file_name VARCHAR(100) NOT NULL,
config_key VARCHAR(400) NOT NULL,
config_value VARCHAR(4000),
config_comment VARCHAR(4000),
config_file_hierarchy VARCHAR(50) NOT NULL,
config_encrypted VARCHAR(1) NOT NULL,
config_sequence BIGINT NOT NULL,
config_version_index BIGINT,
last_updated BIGINT NOT NULL,
hibernate_version_number BIGINT NOT NULL,
PRIMARY KEY (id)
);
CREATE INDEX grpconfig_config_file_idx ON grouper_config (config_file_name, last_updated);
CREATE INDEX grpconfig_config_key_idx ON grouper_config (config_key, config_file_name);
CREATE INDEX grpconfig_last_updated_idx ON grouper_config (last_updated);
CREATE UNIQUE INDEX grpconfig_unique_idx ON grouper_config (config_file_name, config_file_hierarchy, config_key, config_sequence);
CREATE INDEX change_log_temp_created_on_idx ON grouper_change_log_entry_temp (created_on);
CREATE INDEX member_subjidentifier0_idx ON grouper_members (subject_identifier0);
CREATE INDEX pit_member_subjidentifier0_idx ON grouper_pit_members (subject_identifier0);
update grouper_ddl set last_updated = to_char(current_timestamp, 'YYYY/MM/DD HH12:MI:SS'), history = substring((to_char(current_timestamp, 'YYYY/MM/DD HH12:MI:SS') || ': upgrade Grouper from V' || db_version || ' to V31, ' || history) from 1 for 3500), db_version = 31 where object_name = 'Grouper';
commit;