Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabria committed Apr 8, 2015
2 parents 337312e + 20f27bd commit 04effab
Show file tree
Hide file tree
Showing 351 changed files with 15,198 additions and 4,341 deletions.
7 changes: 6 additions & 1 deletion build-system/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
~ Copyright (c) 2010-2013 Evolveum
~ Copyright (c) 2010-2015 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -361,6 +361,11 @@
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-client</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
Expand Down
68 changes: 56 additions & 12 deletions config/sql/midpoint/3.1.1/h2/h2-3.1.1.sql
Expand Up @@ -6,7 +6,7 @@ CREATE TABLE m_abstract_role (
);

CREATE TABLE m_assignment (
id SMALLINT NOT NULL,
id INTEGER NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
administrativeStatus INTEGER,
archiveTimestamp TIMESTAMP,
Expand Down Expand Up @@ -36,14 +36,26 @@ CREATE TABLE m_assignment (
tenantRef_relation VARCHAR(157),
tenantRef_targetOid VARCHAR(36),
tenantRef_type INTEGER,
extId SMALLINT,
extId INTEGER,
extOid VARCHAR(36),
PRIMARY KEY (id, owner_oid)
);

CREATE TABLE m_assignment_ext_boolean (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
booleanValue BOOLEAN NOT NULL,
extensionType INTEGER,
dynamicDef BOOLEAN,
eType VARCHAR(157),
valueType INTEGER,
PRIMARY KEY (eName, anyContainer_owner_id, anyContainer_owner_owner_oid, booleanValue)
);

CREATE TABLE m_assignment_ext_date (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id SMALLINT NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
dateValue TIMESTAMP NOT NULL,
extensionType INTEGER,
Expand All @@ -55,7 +67,7 @@ CREATE TABLE m_assignment_ext_date (

CREATE TABLE m_assignment_ext_long (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id SMALLINT NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
longValue BIGINT NOT NULL,
extensionType INTEGER,
Expand All @@ -67,7 +79,7 @@ CREATE TABLE m_assignment_ext_long (

CREATE TABLE m_assignment_ext_poly (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id SMALLINT NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
orig VARCHAR(255) NOT NULL,
extensionType INTEGER,
Expand All @@ -80,7 +92,7 @@ CREATE TABLE m_assignment_ext_poly (

CREATE TABLE m_assignment_ext_reference (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id SMALLINT NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
targetoid VARCHAR(36) NOT NULL,
extensionType INTEGER,
Expand All @@ -94,7 +106,7 @@ CREATE TABLE m_assignment_ext_reference (

CREATE TABLE m_assignment_ext_string (
eName VARCHAR(157) NOT NULL,
anyContainer_owner_id SMALLINT NOT NULL,
anyContainer_owner_id INTEGER NOT NULL,
anyContainer_owner_owner_oid VARCHAR(36) NOT NULL,
stringValue VARCHAR(255) NOT NULL,
extensionType INTEGER,
Expand All @@ -105,8 +117,9 @@ CREATE TABLE m_assignment_ext_string (
);

CREATE TABLE m_assignment_extension (
owner_id SMALLINT NOT NULL,
owner_id INTEGER NOT NULL,
owner_owner_oid VARCHAR(36) NOT NULL,
booleansCount SMALLINT,
datesCount SMALLINT,
longsCount SMALLINT,
polysCount SMALLINT,
Expand All @@ -116,7 +129,7 @@ CREATE TABLE m_assignment_extension (
);

CREATE TABLE m_assignment_reference (
owner_id SMALLINT NOT NULL,
owner_id INTEGER NOT NULL,
owner_owner_oid VARCHAR(36) NOT NULL,
reference_type INTEGER NOT NULL,
relation VARCHAR(157) NOT NULL,
Expand Down Expand Up @@ -190,7 +203,7 @@ CREATE TABLE m_connector_target_system (
);

CREATE TABLE m_exclusion (
id SMALLINT NOT NULL,
id INTEGER NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
policy INTEGER,
targetRef_relation VARCHAR(157),
Expand Down Expand Up @@ -230,7 +243,7 @@ CREATE TABLE m_lookup_table (
);

CREATE TABLE m_lookup_table_row (
id SMALLINT NOT NULL,
id INTEGER NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
row_key VARCHAR(255),
label_norm VARCHAR(255),
Expand All @@ -250,6 +263,7 @@ CREATE TABLE m_node (

CREATE TABLE m_object (
oid VARCHAR(36) NOT NULL,
booleansCount SMALLINT,
createChannel VARCHAR(255),
createTimestamp TIMESTAMP,
creatorRef_relation VARCHAR(157),
Expand All @@ -276,6 +290,17 @@ CREATE TABLE m_object (
PRIMARY KEY (oid)
);

CREATE TABLE m_object_ext_boolean (
eName VARCHAR(157) NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
ownerType INTEGER NOT NULL,
booleanValue BOOLEAN NOT NULL,
dynamicDef BOOLEAN,
eType VARCHAR(157),
valueType INTEGER,
PRIMARY KEY (eName, owner_oid, ownerType, booleanValue)
);

CREATE TABLE m_object_ext_date (
eName VARCHAR(157) NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
Expand Down Expand Up @@ -488,7 +513,7 @@ CREATE TABLE m_task_dependent (
);

CREATE TABLE m_trigger (
id SMALLINT NOT NULL,
id INTEGER NOT NULL,
owner_oid VARCHAR(36) NOT NULL,
handlerUri VARCHAR(255),
timestampValue TIMESTAMP,
Expand Down Expand Up @@ -565,6 +590,8 @@ CREATE INDEX iAssignmentAdministrative ON m_assignment (administrativeStatus);

CREATE INDEX iAssignmentEffective ON m_assignment (effectiveStatus);

CREATE INDEX iAExtensionBoolean ON m_assignment_ext_boolean (extensionType, eName, booleanValue);

CREATE INDEX iAExtensionDate ON m_assignment_ext_date (extensionType, eName, dateValue);

CREATE INDEX iAExtensionLong ON m_assignment_ext_long (extensionType, eName, longValue);
Expand All @@ -590,6 +617,9 @@ ADD CONSTRAINT uc_generic_object_name UNIQUE (name_norm);
ALTER TABLE m_lookup_table
ADD CONSTRAINT uc_lookup_name UNIQUE (name_norm);

ALTER TABLE m_lookup_table_row
ADD CONSTRAINT uc_row_key UNIQUE (row_key);

ALTER TABLE m_node
ADD CONSTRAINT uc_node_name UNIQUE (name_norm);

Expand All @@ -601,6 +631,10 @@ CREATE INDEX iObjectTypeClass ON m_object (objectTypeClass);

CREATE INDEX iObjectCreateTimestamp ON m_object (createTimestamp);

CREATE INDEX iExtensionBoolean ON m_object_ext_boolean (ownerType, eName, booleanValue);

CREATE INDEX iExtensionBooleanDef ON m_object_ext_boolean (owner_oid, ownerType);

CREATE INDEX iExtensionDate ON m_object_ext_date (ownerType, eName, dateValue);

CREATE INDEX iExtensionDateDef ON m_object_ext_date (owner_oid, ownerType);
Expand Down Expand Up @@ -688,6 +722,11 @@ ADD CONSTRAINT fk_assignment_owner
FOREIGN KEY (owner_oid)
REFERENCES m_object;

ALTER TABLE m_assignment_ext_boolean
ADD CONSTRAINT fk_assignment_ext_boolean
FOREIGN KEY (anyContainer_owner_id, anyContainer_owner_owner_oid)
REFERENCES m_assignment_extension;

ALTER TABLE m_assignment_ext_date
ADD CONSTRAINT fk_assignment_ext_date
FOREIGN KEY (anyContainer_owner_id, anyContainer_owner_owner_oid)
Expand Down Expand Up @@ -768,6 +807,11 @@ ADD CONSTRAINT fk_node
FOREIGN KEY (oid)
REFERENCES m_object;

ALTER TABLE m_object_ext_boolean
ADD CONSTRAINT fk_object_ext_boolean
FOREIGN KEY (owner_oid)
REFERENCES m_object;

ALTER TABLE m_object_ext_date
ADD CONSTRAINT fk_object_ext_date
FOREIGN KEY (owner_oid)
Expand Down
42 changes: 0 additions & 42 deletions config/sql/midpoint/3.1.1/h2/h2-upgrade-3.1-3.1.1.sql

This file was deleted.

0 comments on commit 04effab

Please sign in to comment.