Skip to content

Commit

Permalink
Merge b20f541 into 5371c46
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmckenzie committed Jan 31, 2023
2 parents 5371c46 + b20f541 commit 79d4376
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file, which follows the guidelines
on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
[Semantic Versioning](http://semver.org/).

### Unreleased
## [11.0.0] - 2023-01-31
### Removed
- Removed unnecessary indexes from event_log table

## [11.0.0] - 2023-01-26
### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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="event-store-025"
author="TechPod"
logicalFilePath="025-drop-redundant-indexes-on-event-log-table.changelog.xml">

<comment>Using sql rather than the drop trigger tag, so we can use 'IF EXISTS'</comment>
<sql>DROP INDEX IF EXISTS event_log_stream_id_idx CASCADE;</sql>
<sql>DROP INDEX IF EXISTS event_log_position_in_stream_idx CASCADE;</sql>

<rollback>
<sql>CREATE INDEX IF NOT EXISTS event_log_stream_id_idx ON event_log(stream_id);</sql>
<sql>CREATE INDEX IF NOT EXISTS event_log_position_in_stream_idx ON event_log(position_in_stream);</sql>
</rollback>

</changeSet>
</databaseChangeLog>

0 comments on commit 79d4376

Please sign in to comment.