Skip to content

Commit

Permalink
add indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Dec 18, 2023
1 parent f9feb8d commit 0c97e83
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/changelog-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@
relativeToChangelogFile="true"/>
<include file="changesets/changelog-consent-2023-09-20-rename-role-id-column-in-roles.xml"
relativeToChangelogFile="true"/>
<include file="changesets/changelog-consent-2023-12-18-dataset-study-indexes.xml"
relativeToChangelogFile="true"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet id="changelog-consent-2023-12-18-dataset-study-indexes.xml" author="grushton">
<createIndex indexName="idx_dataset_study_id" tableName="dataset">
<column name="study_id"/>
</createIndex>
<createIndex indexName="idx_dataset_prop_schema" tableName="dataset_property">
<column name="schema_property"/>
</createIndex>
<createIndex indexName="idx_study_uuid" tableName="study">
<column name="uuid"/>
</createIndex>
<createIndex indexName="idx_study_prop_study_id" tableName="study_property">
<column name="study_id"/>
</createIndex>
<createIndex indexName="idx_study_prop_key" tableName="study_property">
<column name="key"/>
</createIndex>
<createIndex indexName="idx_study_prop_type" tableName="study_property">
<column name="type"/>
</createIndex>
<createIndex indexName="idx_fso_entity" tableName="file_storage_object">
<column name="entity_id"/>
</createIndex>
<createIndex indexName="idx_fso_category" tableName="file_storage_object">
<column name="category"/>
</createIndex>
<createIndex indexName="idx_fso_deleted" tableName="file_storage_object">
<column name="deleted"/>
</createIndex>
</changeSet>
</databaseChangeLog>

0 comments on commit 0c97e83

Please sign in to comment.