Revert "Only create indices with tables"

This reverts commit f26addfd1b.

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent 478c32a631
commit 9540167d49
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 3
      libresonic-main/src/main/resources/liquibase/legacy/schema32.xml
  2. 13
      libresonic-main/src/main/resources/liquibase/legacy/schema47.xml
  3. 10
      libresonic-main/src/main/resources/liquibase/legacy/schema53.xml

@ -92,9 +92,6 @@
</column>
<column name="error_message" type="${varchar_type}" />
</createTable>
<createIndex tableName="podcast_episode" indexName="idx_podcast_episode_url">
<column name="url"/>
</createIndex>
<rollback>
<dropTable tableName="podcast_episode" />
</rollback>

@ -207,9 +207,6 @@
<createIndex tableName="album" indexName="idx_album_present" >
<column name="present"/>
</createIndex>
<createIndex tableName="album" indexName="idx_album_name">
<column name="name"/>
</createIndex>
<sql dbms="hsql">
set table album type cached
</sql>
@ -217,6 +214,16 @@
<dropTable tableName="album" />
</rollback>
</changeSet>
<changeSet id="schema47_005" author="muff1nman">
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="idx_album_name" />
</not>
</preConditions>
<createIndex tableName="album" indexName="idx_album_name">
<column name="name"/>
</createIndex>
</changeSet>
<changeSet id="schema47_006" author="muff1nman">
<preConditions onFail="MARK_RAN">
<not>

@ -15,6 +15,16 @@
</delete>
</rollback>
</changeSet>
<changeSet id="schema53_002" author="muff1nman">
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="idx_podcast_episode_url" />
</not>
</preConditions>
<createIndex tableName="podcast_episode" indexName="idx_podcast_episode_url">
<column name="url"/>
</createIndex>
</changeSet>
<changeSet id="schema53_003" author="muff1nman">
<preConditions onFail="MARK_RAN">
<not>

Loading…
Cancel
Save