Skip to content

Commit

Permalink
fix: add indices to announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke committed Jul 24, 2024
1 parent 2b3c117 commit 5079420
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/db/changeLog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@

<include relativeToChangelogFile="true" file="v1/2023-12-11-create-tables.xml"/>
<include relativeToChangelogFile="true" file="v1/2024-07-08-product-names.xml"/>
<include relativeToChangelogFile="true" file="v1/2024-07-24-indices-added.xml"/>

</databaseChangeLog>
19 changes: 19 additions & 0 deletions src/main/resources/db/v1/2024-07-24-indices-added.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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-latest.xsd"
objectQuotingStrategy="QUOTE_ONLY_RESERVED_WORDS">
<changeSet author="dev (generated)" id="1720423004675-1">
<sql>
DROP INDEX IF EXISTS start_status_idx;
CREATE INDEX IF NOT EXISTS start_status_idx ON announcement (startdate, status, tenant_id);

DROP INDEX IF EXISTS product_idx;
CREATE INDEX IF NOT EXISTS product_idx ON announcement (product_name, tenant_id);

DROP INDEX IF EXISTS workspace_idx;
CREATE INDEX IF NOT EXISTS workspace_idx ON announcement (workspaceName, tenant_id);
</sql>
</changeSet>
</databaseChangeLog>

0 comments on commit 5079420

Please sign in to comment.