Merge pull request #363 from muff1nman/fix-331

Fixes #331
master
Tom Powell 8 years ago committed by GitHub
commit 154d4316e6
  1. 8
      libresonic-main/src/main/resources/liquibase/legacy/schema52.xml

@ -16,6 +16,7 @@
</rollback> </rollback>
</changeSet> </changeSet>
<changeSet id="schema52_002" author="muff1nman"> <changeSet id="schema52_002" author="muff1nman">
<validCheckSum>7:e7e0f04cd4691ec2b5d955b449e0154b</validCheckSum>
<preConditions onFail="MARK_RAN"> <preConditions onFail="MARK_RAN">
<not> <not>
<tableExists tableName="music_folder_user" /> <tableExists tableName="music_folder_user" />
@ -32,6 +33,13 @@
<createIndex tableName="music_folder_user" indexName="idx_music_folder_user_username"> <createIndex tableName="music_folder_user" indexName="idx_music_folder_user_username">
<column name="username"/> <column name="username"/>
</createIndex> </createIndex>
<sql>
insert into music_folder_user select music_folder.id, u.username
from music_folder, ${userTableQuote}user${userTableQuote} u
</sql>
<rollback>
<dropTable tableName="music_folder_user" />
</rollback>
</changeSet> </changeSet>
<changeSet id="schema52_003" author="muff1nman"> <changeSet id="schema52_003" author="muff1nman">
<preConditions onFail="MARK_RAN"> <preConditions onFail="MARK_RAN">

Loading…
Cancel
Save