-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add indexes for survey unit tables (#159)
- Loading branch information
Showing
5 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/resources/db/changelog/410_indexes_survey_unit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xmlns:pro="http://www.liquibase.org/xml/ns/pro" | ||
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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | ||
<changeSet author="davdarras" id="410-1"> | ||
<createIndex indexName="idx_state_data_su" tableName="state_data"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-2"> | ||
<createIndex indexName="idx_comment_su" tableName="comment"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-3"> | ||
<createIndex indexName="idx_personalization_su" tableName="personalization"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-4"> | ||
<createIndex indexName="idx_data_su" tableName="data"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/test/resources/db/changelog/410_indexes_survey_unit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xmlns:pro="http://www.liquibase.org/xml/ns/pro" | ||
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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | ||
<changeSet author="davdarras" id="410-1"> | ||
<createIndex indexName="idx_state_data_su" tableName="state_data"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-2"> | ||
<createIndex indexName="idx_comment_su" tableName="comment"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-3"> | ||
<createIndex indexName="idx_personalization_su" tableName="personalization"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
<changeSet author="davdarras" id="410-4"> | ||
<createIndex indexName="idx_data_su" tableName="data"> | ||
<column name="survey_unit_id"/> | ||
</createIndex> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters