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/19.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 sql/pgsql/migrations/19.sql

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

diff --git a/sql/pgsql/migrations/19.sql b/sql/pgsql/migrations/19.sql
new file mode 100644
index 000000000..15c12ca33
--- /dev/null
+++ b/sql/pgsql/migrations/19.sql
@@ -0,0 +1,11 @@
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_PUBLISH_KEY', 2, '', '', 1);
+
+alter table ttrss_user_entries add column published boolean;
+update ttrss_user_entries set published = false;
+alter table ttrss_user_entries alter column published set not null;
+alter table ttrss_user_entries alter column published set default false;
+
+insert into ttrss_filter_actions (id,name,description) values (5, 'publish', 
+	'Publish article');
+
+update ttrss_version set schema_version = 19;
-- 
cgit v1.2.3

