CCM NG: ccm-shortcuts passes all tests

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5997 8810af33-2d31-482b-a856-94f89814c4df
jensp 2019-05-03 13:18:49 +00:00
parent 679ae6cc03
commit 2939cfea33
2 changed files with 988 additions and 908 deletions

View File

@ -44,6 +44,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CATEGORY_INDEX boolean, CATEGORY_INDEX boolean,
OBJECT_ORDER bigint, OBJECT_ORDER bigint,
TYPE varchar(255), TYPE varchar(255),
UUID varchar(255) not null,
OBJECT_ID bigint, OBJECT_ID bigint,
CATEGORY_ID bigint, CATEGORY_ID bigint,
primary key (CATEGORIZATION_ID) primary key (CATEGORIZATION_ID)
@ -98,6 +99,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.CCM_ROLES ( create table CCM_CORE.CCM_ROLES (
ROLE_ID bigint not null, ROLE_ID bigint not null,
NAME varchar(512) not null, NAME varchar(512) not null,
UUID varchar(255) not null,
primary key (ROLE_ID) primary key (ROLE_ID)
); );
@ -125,6 +127,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CONTEXT varchar(255), CONTEXT varchar(255),
DOMAIN_ORDER bigint, DOMAIN_ORDER bigint,
OWNER_ORDER bigint, OWNER_ORDER bigint,
UUID varchar(255) not null,
domain_OBJECT_ID bigint not null, domain_OBJECT_ID bigint not null,
owner_OBJECT_ID bigint not null, owner_OBJECT_ID bigint not null,
primary key (OWNERSHIP_ID) primary key (OWNERSHIP_ID)
@ -299,6 +302,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.GROUP_MEMBERSHIPS ( create table CCM_CORE.GROUP_MEMBERSHIPS (
MEMBERSHIP_ID bigint not null, MEMBERSHIP_ID bigint not null,
UUID varchar(255) not null,
GROUP_ID bigint, GROUP_ID bigint,
MEMBER_ID bigint, MEMBER_ID bigint,
primary key (MEMBERSHIP_ID) primary key (MEMBERSHIP_ID)
@ -444,6 +448,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.PARTIES ( create table CCM_CORE.PARTIES (
PARTY_ID bigint not null, PARTY_ID bigint not null,
NAME varchar(256) not null, NAME varchar(256) not null,
UUID varchar(255) not null,
primary key (PARTY_ID) primary key (PARTY_ID)
); );
@ -453,6 +458,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CREATION_IP varchar(255), CREATION_IP varchar(255),
GRANTED_PRIVILEGE varchar(255), GRANTED_PRIVILEGE varchar(255),
INHERITED boolean, INHERITED boolean,
UUID varchar(255) not null,
CREATION_USER_ID bigint, CREATION_USER_ID bigint,
GRANTEE_ID bigint, GRANTEE_ID bigint,
INHERITED_FROM_ID bigint, INHERITED_FROM_ID bigint,
@ -511,6 +517,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
RESOURCE_TYPE_ID bigint not null, RESOURCE_TYPE_ID bigint not null,
SINGLETON boolean, SINGLETON boolean,
TITLE varchar(254) not null, TITLE varchar(254) not null,
UUID varchar(255) not null,
EMBEDDED_VIEW boolean, EMBEDDED_VIEW boolean,
FULL_PAGE_VIEW boolean, FULL_PAGE_VIEW boolean,
WORKSPACE_APP boolean, WORKSPACE_APP boolean,
@ -534,6 +541,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.ROLE_MEMBERSHIPS ( create table CCM_CORE.ROLE_MEMBERSHIPS (
MEMBERSHIP_ID bigint not null, MEMBERSHIP_ID bigint not null,
UUID varchar(255) not null,
MEMBER_ID bigint, MEMBER_ID bigint,
ROLE_ID bigint, ROLE_ID bigint,
primary key (MEMBERSHIP_ID) primary key (MEMBERSHIP_ID)
@ -544,10 +552,10 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
SETTING_ID bigint not null, SETTING_ID bigint not null,
CONFIGURATION_CLASS varchar(512) not null, CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null, NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_DOUBLE double, SETTING_VALUE_DOUBLE double,
SETTING_VALUE_LONG bigint, SETTING_VALUE_LONG bigint,
SETTING_VALUE_BIG_DECIMAL decimal(19,2), SETTING_VALUE_BIG_DECIMAL decimal(19,2),
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean, SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID) primary key (SETTING_ID)
); );
@ -709,6 +717,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS ( create table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS (
TASK_ASSIGNMENT_ID bigint not null, TASK_ASSIGNMENT_ID bigint not null,
UUID varchar(255) not null,
ROLE_ID bigint, ROLE_ID bigint,
TASK_ID bigint, TASK_ID bigint,
primary key (TASK_ASSIGNMENT_ID) primary key (TASK_ASSIGNMENT_ID)
@ -725,6 +734,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES ( create table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES (
TASK_DEPENDENCY_ID bigint not null, TASK_DEPENDENCY_ID bigint not null,
uuid varchar(255) not null,
BLOCKED_TASK_ID bigint, BLOCKED_TASK_ID bigint,
BLOCKING_TASK_ID bigint, BLOCKING_TASK_ID bigint,
primary key (TASK_DEPENDENCY_ID) primary key (TASK_DEPENDENCY_ID)
@ -765,6 +775,9 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
primary key (WORKFLOW_ID) primary key (WORKFLOW_ID)
); );
alter table CCM_CORE.CATEGORIZATIONS
add constraint UK_da7jus3wn1tr8poyaw9btxbrc unique (UUID);
alter table CCM_CORE.CATEGORY_DOMAINS alter table CCM_CORE.CATEGORY_DOMAINS
add constraint UK_mb1riernf8a88u3mwl0bgfj8y unique (DOMAIN_KEY); add constraint UK_mb1riernf8a88u3mwl0bgfj8y unique (DOMAIN_KEY);
@ -774,21 +787,48 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
alter table CCM_CORE.CCM_OBJECTS alter table CCM_CORE.CCM_OBJECTS
add constraint UK_1cm71jlagvyvcnkqvxqyit3wx unique (UUID); add constraint UK_1cm71jlagvyvcnkqvxqyit3wx unique (UUID);
alter table CCM_CORE.CCM_ROLES
add constraint UK_rfmsjqsq6kagolsod3ufkugll unique (UUID);
alter table CCM_CORE.DOMAIN_OWNERSHIPS
add constraint UK_j86gai9740v9hshascbsboudb unique (UUID);
alter table CCM_CORE.GROUP_MEMBERSHIPS
add constraint UK_kkdoia60bmiwhhdru169p3n9g unique (UUID);
alter table CCM_CORE.HOSTS alter table CCM_CORE.HOSTS
add constraint UK9ramlv6uxwt13v0wj7q0tucsx unique (SERVER_NAME, SERVER_PORT); add constraint UK9ramlv6uxwt13v0wj7q0tucsx unique (SERVER_NAME, SERVER_PORT);
alter table CCM_CORE.INSTALLED_MODULES alter table CCM_CORE.INSTALLED_MODULES
add constraint UK_11imwgfojyi4hpr18uw9g3jvx unique (MODULE_CLASS_NAME); add constraint UK_11imwgfojyi4hpr18uw9g3jvx unique (MODULE_CLASS_NAME);
alter table CCM_CORE.PARTIES
add constraint UK_1hv061qace2mn4loroe3fwdel unique (UUID);
alter table CCM_CORE.PERMISSIONS
add constraint UK_p50se7rdexv7xnkiqsl6ijyti unique (UUID);
alter table CCM_CORE.RESOURCE_TYPES
add constraint UK_ioax2ix2xmq3nw7el5k6orggb unique (UUID);
alter table CCM_CORE.ROLE_MEMBERSHIPS
add constraint UK_82wdq214bfs99eii71fp50s97 unique (UUID);
alter table CCM_CORE.SETTINGS alter table CCM_CORE.SETTINGS
add constraint UK5whinfxdaepqs09e5ia9y71uk unique (CONFIGURATION_CLASS, NAME); add constraint UK5whinfxdaepqs09e5ia9y71uk unique (CONFIGURATION_CLASS, NAME);
alter table CCM_CORE.SITES alter table CCM_CORE.SITES
add constraint UK_kou1h4y4st2m173he44yy8grx unique (DOMAIN_OF_SITE); add constraint UK_kou1h4y4st2m173he44yy8grx unique (DOMAIN_OF_SITE);
alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS
add constraint UK_gv93k167pe9qy3go9vjau1q2t unique (UUID);
alter table CCM_CORE.WORKFLOW_TASK_COMMENTS alter table CCM_CORE.WORKFLOW_TASK_COMMENTS
add constraint UK_4nnedf08odyjxalfkg16fmjoi unique (UUID); add constraint UK_4nnedf08odyjxalfkg16fmjoi unique (UUID);
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add constraint UK_787va2ep8ucoul29qgsoaxnub unique (uuid);
alter table CCM_CORE.WORKFLOW_TASKS alter table CCM_CORE.WORKFLOW_TASKS
add constraint UK_2u6ruatxij8wfojl8a1eigqqd unique (UUID); add constraint UK_2u6ruatxij8wfojl8a1eigqqd unique (UUID);

View File

@ -44,6 +44,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CATEGORY_INDEX boolean, CATEGORY_INDEX boolean,
OBJECT_ORDER int8, OBJECT_ORDER int8,
TYPE varchar(255), TYPE varchar(255),
UUID varchar(255) not null,
OBJECT_ID int8, OBJECT_ID int8,
CATEGORY_ID int8, CATEGORY_ID int8,
primary key (CATEGORIZATION_ID) primary key (CATEGORIZATION_ID)
@ -98,6 +99,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.CCM_ROLES ( create table CCM_CORE.CCM_ROLES (
ROLE_ID int8 not null, ROLE_ID int8 not null,
NAME varchar(512) not null, NAME varchar(512) not null,
UUID varchar(255) not null,
primary key (ROLE_ID) primary key (ROLE_ID)
); );
@ -125,6 +127,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CONTEXT varchar(255), CONTEXT varchar(255),
DOMAIN_ORDER int8, DOMAIN_ORDER int8,
OWNER_ORDER int8, OWNER_ORDER int8,
UUID varchar(255) not null,
domain_OBJECT_ID int8 not null, domain_OBJECT_ID int8 not null,
owner_OBJECT_ID int8 not null, owner_OBJECT_ID int8 not null,
primary key (OWNERSHIP_ID) primary key (OWNERSHIP_ID)
@ -299,6 +302,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.GROUP_MEMBERSHIPS ( create table CCM_CORE.GROUP_MEMBERSHIPS (
MEMBERSHIP_ID int8 not null, MEMBERSHIP_ID int8 not null,
UUID varchar(255) not null,
GROUP_ID int8, GROUP_ID int8,
MEMBER_ID int8, MEMBER_ID int8,
primary key (MEMBERSHIP_ID) primary key (MEMBERSHIP_ID)
@ -444,6 +448,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.PARTIES ( create table CCM_CORE.PARTIES (
PARTY_ID int8 not null, PARTY_ID int8 not null,
NAME varchar(256) not null, NAME varchar(256) not null,
UUID varchar(255) not null,
primary key (PARTY_ID) primary key (PARTY_ID)
); );
@ -453,6 +458,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
CREATION_IP varchar(255), CREATION_IP varchar(255),
GRANTED_PRIVILEGE varchar(255), GRANTED_PRIVILEGE varchar(255),
INHERITED boolean, INHERITED boolean,
UUID varchar(255) not null,
CREATION_USER_ID int8, CREATION_USER_ID int8,
GRANTEE_ID int8, GRANTEE_ID int8,
INHERITED_FROM_ID int8, INHERITED_FROM_ID int8,
@ -511,6 +517,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
RESOURCE_TYPE_ID int8 not null, RESOURCE_TYPE_ID int8 not null,
SINGLETON boolean, SINGLETON boolean,
TITLE varchar(254) not null, TITLE varchar(254) not null,
UUID varchar(255) not null,
EMBEDDED_VIEW boolean, EMBEDDED_VIEW boolean,
FULL_PAGE_VIEW boolean, FULL_PAGE_VIEW boolean,
WORKSPACE_APP boolean, WORKSPACE_APP boolean,
@ -534,6 +541,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.ROLE_MEMBERSHIPS ( create table CCM_CORE.ROLE_MEMBERSHIPS (
MEMBERSHIP_ID int8 not null, MEMBERSHIP_ID int8 not null,
UUID varchar(255) not null,
MEMBER_ID int8, MEMBER_ID int8,
ROLE_ID int8, ROLE_ID int8,
primary key (MEMBERSHIP_ID) primary key (MEMBERSHIP_ID)
@ -544,10 +552,10 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
SETTING_ID int8 not null, SETTING_ID int8 not null,
CONFIGURATION_CLASS varchar(512) not null, CONFIGURATION_CLASS varchar(512) not null,
NAME varchar(512) not null, NAME varchar(512) not null,
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_DOUBLE float8, SETTING_VALUE_DOUBLE float8,
SETTING_VALUE_LONG int8, SETTING_VALUE_LONG int8,
SETTING_VALUE_BIG_DECIMAL numeric(19, 2), SETTING_VALUE_BIG_DECIMAL numeric(19, 2),
SETTING_VALUE_STRING varchar(1024),
SETTING_VALUE_BOOLEAN boolean, SETTING_VALUE_BOOLEAN boolean,
primary key (SETTING_ID) primary key (SETTING_ID)
); );
@ -709,6 +717,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS ( create table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS (
TASK_ASSIGNMENT_ID int8 not null, TASK_ASSIGNMENT_ID int8 not null,
UUID varchar(255) not null,
ROLE_ID int8, ROLE_ID int8,
TASK_ID int8, TASK_ID int8,
primary key (TASK_ASSIGNMENT_ID) primary key (TASK_ASSIGNMENT_ID)
@ -725,6 +734,7 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
create table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES ( create table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES (
TASK_DEPENDENCY_ID int8 not null, TASK_DEPENDENCY_ID int8 not null,
uuid varchar(255) not null,
BLOCKED_TASK_ID int8, BLOCKED_TASK_ID int8,
BLOCKING_TASK_ID int8, BLOCKING_TASK_ID int8,
primary key (TASK_DEPENDENCY_ID) primary key (TASK_DEPENDENCY_ID)
@ -765,6 +775,9 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
primary key (WORKFLOW_ID) primary key (WORKFLOW_ID)
); );
alter table CCM_CORE.CATEGORIZATIONS
add constraint UK_da7jus3wn1tr8poyaw9btxbrc unique (UUID);
alter table CCM_CORE.CATEGORY_DOMAINS alter table CCM_CORE.CATEGORY_DOMAINS
add constraint UK_mb1riernf8a88u3mwl0bgfj8y unique (DOMAIN_KEY); add constraint UK_mb1riernf8a88u3mwl0bgfj8y unique (DOMAIN_KEY);
@ -774,21 +787,48 @@ DROP SEQUENCE IF EXISTS hibernate_sequence;
alter table CCM_CORE.CCM_OBJECTS alter table CCM_CORE.CCM_OBJECTS
add constraint UK_1cm71jlagvyvcnkqvxqyit3wx unique (UUID); add constraint UK_1cm71jlagvyvcnkqvxqyit3wx unique (UUID);
alter table CCM_CORE.CCM_ROLES
add constraint UK_rfmsjqsq6kagolsod3ufkugll unique (UUID);
alter table CCM_CORE.DOMAIN_OWNERSHIPS
add constraint UK_j86gai9740v9hshascbsboudb unique (UUID);
alter table CCM_CORE.GROUP_MEMBERSHIPS
add constraint UK_kkdoia60bmiwhhdru169p3n9g unique (UUID);
alter table CCM_CORE.HOSTS alter table CCM_CORE.HOSTS
add constraint UK9ramlv6uxwt13v0wj7q0tucsx unique (SERVER_NAME, SERVER_PORT); add constraint UK9ramlv6uxwt13v0wj7q0tucsx unique (SERVER_NAME, SERVER_PORT);
alter table CCM_CORE.INSTALLED_MODULES alter table CCM_CORE.INSTALLED_MODULES
add constraint UK_11imwgfojyi4hpr18uw9g3jvx unique (MODULE_CLASS_NAME); add constraint UK_11imwgfojyi4hpr18uw9g3jvx unique (MODULE_CLASS_NAME);
alter table CCM_CORE.PARTIES
add constraint UK_1hv061qace2mn4loroe3fwdel unique (UUID);
alter table CCM_CORE.PERMISSIONS
add constraint UK_p50se7rdexv7xnkiqsl6ijyti unique (UUID);
alter table CCM_CORE.RESOURCE_TYPES
add constraint UK_ioax2ix2xmq3nw7el5k6orggb unique (UUID);
alter table CCM_CORE.ROLE_MEMBERSHIPS
add constraint UK_82wdq214bfs99eii71fp50s97 unique (UUID);
alter table CCM_CORE.SETTINGS alter table CCM_CORE.SETTINGS
add constraint UK5whinfxdaepqs09e5ia9y71uk unique (CONFIGURATION_CLASS, NAME); add constraint UK5whinfxdaepqs09e5ia9y71uk unique (CONFIGURATION_CLASS, NAME);
alter table CCM_CORE.SITES alter table CCM_CORE.SITES
add constraint UK_kou1h4y4st2m173he44yy8grx unique (DOMAIN_OF_SITE); add constraint UK_kou1h4y4st2m173he44yy8grx unique (DOMAIN_OF_SITE);
alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS
add constraint UK_gv93k167pe9qy3go9vjau1q2t unique (UUID);
alter table CCM_CORE.WORKFLOW_TASK_COMMENTS alter table CCM_CORE.WORKFLOW_TASK_COMMENTS
add constraint UK_4nnedf08odyjxalfkg16fmjoi unique (UUID); add constraint UK_4nnedf08odyjxalfkg16fmjoi unique (UUID);
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add constraint UK_787va2ep8ucoul29qgsoaxnub unique (uuid);
alter table CCM_CORE.WORKFLOW_TASKS alter table CCM_CORE.WORKFLOW_TASKS
add constraint UK_2u6ruatxij8wfojl8a1eigqqd unique (UUID); add constraint UK_2u6ruatxij8wfojl8a1eigqqd unique (UUID);