mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix unnecessary fk on channels for unauthenticated subscriptions.
This commit is contained in:
parent
e6bca8c5ee
commit
5efa4d22e5
2 changed files with 16 additions and 0 deletions
|
@ -5,5 +5,6 @@
|
||||||
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
|
||||||
<include file="version/0-init.xml" relativeToChangelogFile="true"/>
|
<include file="version/0-init.xml" relativeToChangelogFile="true"/>
|
||||||
|
<include file="version/1-fix-subs.xml" relativeToChangelogFile="true"/>
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|
15
src/main/resources/changelog/version/1-fix-subs.xml
Normal file
15
src/main/resources/changelog/version/1-fix-subs.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" 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
|
||||||
|
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
|
||||||
|
<changeSet id="1-0" author="kavin" runInTransaction="false">
|
||||||
|
<!-- drop constraint since it prevents breaks unauthenticated subscriptions from working -->
|
||||||
|
<sql>ALTER TABLE unauthenticated_subscriptions DROP CONSTRAINT IF EXISTS fk_unauthenticated_subscriptions_id_channels;</sql>
|
||||||
|
<rollback>
|
||||||
|
<sql>ALTER TABLE unauthenticated_subscriptions ADD CONSTRAINT fk_unauthenticated_subscriptions_id_channels FOREIGN KEY (id) REFERENCES channels(uploader_id);</sql>
|
||||||
|
</rollback>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
</databaseChangeLog>
|
Loading…
Reference in a new issue