From 32f9fda33d5f5e88daa4188b637494f3b7af48ca Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Sun, 10 Mar 2019 15:45:30 +0300
Subject: add composite key on ttrss_feeds (feed_url & owner_uid)

---
 schema/versions/pgsql/137.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 schema/versions/pgsql/137.sql

(limited to 'schema/versions/pgsql/137.sql')

diff --git a/schema/versions/pgsql/137.sql b/schema/versions/pgsql/137.sql
new file mode 100644
index 000000000..71b67327e
--- /dev/null
+++ b/schema/versions/pgsql/137.sql
@@ -0,0 +1,7 @@
+begin;
+
+alter table ttrss_feeds add constraint ttrss_feeds_feed_url_owner_uid_key unique (feed_url, owner_uid);
+
+update ttrss_version set schema_version = 137;
+
+commit;
-- 
cgit v1.2.3

