From c0fb0a5ec04c064bb848534185b51c5d1b7bdaaf Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Thu, 4 Mar 2021 08:30:52 +0300
Subject: wip for db_migrations for core schema

---
 sql/pgsql/migrations/34.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 sql/pgsql/migrations/34.sql

(limited to 'sql/pgsql/migrations/34.sql')

diff --git a/sql/pgsql/migrations/34.sql b/sql/pgsql/migrations/34.sql
new file mode 100644
index 000000000..c8733d430
--- /dev/null
+++ b/sql/pgsql/migrations/34.sql
@@ -0,0 +1,7 @@
+alter table ttrss_feeds rename column feed_url to feed_url_old;
+alter table ttrss_feeds add column feed_url text;
+update ttrss_feeds set feed_url = feed_url_old;
+alter table ttrss_feeds alter column feed_url set not null;
+alter table ttrss_feeds drop column feed_url_old;
+
+update ttrss_version set schema_version = 34;
-- 
cgit v1.2.3

