Skip to content

Commit

Permalink
Merge pull request #222 from CJSCommonPlatform/cherry-pick-2.4.x
Browse files Browse the repository at this point in the history
Add indexes to processed_event table
  • Loading branch information
allanmckenzie committed Mar 5, 2020
2 parents b3af808 + 7c1a00d commit 4ff6aa2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
[Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- Added indexes to processed_event table

### Changed
- Fail cleanly if exception occurs while accessing subscription event source
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd">

<changeSet id="subscription-repository-006" author="TechPod"
logicalFilePath="006-add-indexes-to-processed_event-table.changelog.xml">

<createIndex tableName="processed_event" indexName="idx_processed_event_event_number">
<column name="event_number"/>
</createIndex>
<createIndex tableName="processed_event" indexName="idx_processed_event_source">
<column name="source"/>
</createIndex>
<createIndex tableName="processed_event" indexName="idx_processed_event_component">
<column name="component"/>
</createIndex>

<rollback>
<dropIndex tableName="processed_event" indexName="idx_processed_event_event_number"/>
<dropIndex tableName="processed_event" indexName="idx_processed_event_source"/>
<dropIndex tableName="processed_event" indexName="idx_processed_event_component"/>
</rollback>

</changeSet>

</databaseChangeLog>

0 comments on commit 4ff6aa2

Please sign in to comment.