diff --git a/others/db_changes/Data_alias/basic/2019.2/changelog.xml b/others/db_changes/Data_alias/basic/2019.2/changelog.xml index 1c4c46577a0f19f15c846472c1b464a1675c929e..4c52dd94a3dc64670f5cdfb1822d724e6253d2ec 100644 --- a/others/db_changes/Data_alias/basic/2019.2/changelog.xml +++ b/others/db_changes/Data_alias/basic/2019.2/changelog.xml @@ -124,5 +124,9 @@ <include relativeToChangelogFile="true" file="offer_add_date_editnew_user_editnew.xml"/> <include relativeToChangelogFile="true" file="attributerelation_add_date_editnew_user_editnew.xml"/> <include relativeToChangelogFile="true" file="communication_add_date_editnew_user_editnew.xml"/> - + + <include relativeToChangelogFile="true" file="indicesRefactor/ContactManagement.xml"/> + <include relativeToChangelogFile="true" file="indicesRefactor/Keyword.xml"/> + <include relativeToChangelogFile="true" file="indicesRefactor/Activity.xml"/> + <include relativeToChangelogFile="true" file="indicesRefactor/Task.xml"/> </databaseChangeLog> diff --git a/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Activity.xml b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Activity.xml new file mode 100644 index 0000000000000000000000000000000000000000..c25802bbc3f40bb293a814d354247c1424812d34 --- /dev/null +++ b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Activity.xml @@ -0,0 +1,14 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet author="j.goderbauer" id="9b4644f6-3060-4791-b9f5-684939b78dcb"> + <createIndex indexName="IDX_ACTIVITY_PARENT" tableName="ACTIVITY"> + <column name="PARENT_CONTEXT"/> + <column name="PARENT_ID"/> + </createIndex> + <createIndex indexName="IDX_ACTIVITYLINK_ACTIVITY_ID" tableName="ACTIVITYLINK"> + <column name="ACTIVITY_ID"/> + </createIndex> + </changeSet> +</databaseChangeLog> \ No newline at end of file diff --git a/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/ContactManagement.xml b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/ContactManagement.xml new file mode 100644 index 0000000000000000000000000000000000000000..d5febea39b249fceb6f2e0e6612585a5847414a9 --- /dev/null +++ b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/ContactManagement.xml @@ -0,0 +1,23 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet author="j.goderbauer" id="0f2ec94d-75d0-42d9-8026-d70197f0ded4"> + <createIndex indexName="IDX_ADDRESS_CONTACT_ID" tableName="ADDRESS"> + <column name="CONTACT_ID"/> + </createIndex> + <createIndex indexName="IDX_CONTACT_ANY_CONTACT" tableName="CONTACT"> + <column name="PERSON_ID"/> + <column name="ORGANISATION_ID"/> + </createIndex> + <createIndex indexName="IDX_CONTACT_ADDRESS_ID" tableName="CONTACT"> + <column name="ADDRESS_ID"/> + </createIndex> + <createIndex indexName="IDX_COMMUNICATION_CONTACT_ID" tableName="COMMUNICATION"> + <column name="CONTACT_ID"/> + </createIndex> + <createIndex indexName="IDX_COMMUNICATION_MEDIUM_ID" tableName="COMMUNICATION"> + <column name="MEDIUM_ID"/> + </createIndex> + </changeSet> +</databaseChangeLog> \ No newline at end of file diff --git a/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Keyword.xml b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Keyword.xml new file mode 100644 index 0000000000000000000000000000000000000000..6bda5489c9a6e0d9882d7f9c99d15e0ed22579bd --- /dev/null +++ b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Keyword.xml @@ -0,0 +1,18 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet author="j.goderbauer" id="95a53a6c-6157-4fc8-a4cb-501da22ad326"> + <!-- the database will propably never use these indices since there are too less entries within the tables + but IF there should be a lot of entries (thanks to imports or else) there are at least indices --> + <createIndex indexName="IDX_KWD_ENTRY_CONTAINER" tableName="AB_KEYWORD_ENTRY"> + <column name="CONTAINER"/> + </createIndex> + <createIndex indexName="IDX_KWD_ATTR_CONTAINER" tableName="AB_KEYWORD_ATTRIBUTE"> + <column name="CONTAINER"/> + </createIndex> + <createIndex indexName="IDX_KWD_ATTRREL_KWD_ENTRY_ID" tableName="AB_KEYWORD_ATTRIBUTERELATION"> + <column name="AB_KEYWORD_ENTRY_ID"/> + </createIndex> + </changeSet> +</databaseChangeLog> \ No newline at end of file diff --git a/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Task.xml b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Task.xml new file mode 100644 index 0000000000000000000000000000000000000000..a6b5f7c38c4e82f30116968adadf5aebeca75bd8 --- /dev/null +++ b/others/db_changes/Data_alias/basic/2019.2/indicesRefactor/Task.xml @@ -0,0 +1,20 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet author="j.goderbauer" id="038575fd-cbf2-452a-8eae-0b594779cd1b"> + <createIndex indexName="IDX_TASK_REQUESTOR_CONTACT_ID" tableName="TASK"> + <column name="REQUESTOR_CONTACT_ID"/> + </createIndex> + <createIndex indexName="IDX_TASK_EDITOR_CONTACT_ID" tableName="TASK"> + <column name="EDITOR_CONTACT_ID"/> + </createIndex> + <createIndex indexName="IDX_TASK_PARENT" tableName="TASK"> + <column name="PARENT_CONTEXT"/> + <column name="PARENT_ID"/> + </createIndex> + <createIndex indexName="IDX_TASKLINK_TASK_ID" tableName="TASKLINK"> + <column name="TASK_ID"/> + </createIndex> + </changeSet> +</databaseChangeLog> \ No newline at end of file