From eb40e11b14b025f3603581977e2f6bbb032967e4 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sat, 10 Dec 2005 08:14:29 +0100
Subject: add column for slash:comments and alike in ttrss_entries (+ add
 upgrade scripts for 1.1.1)

---
 schema/upgrade-1.1-1.1.1-mysql.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 schema/upgrade-1.1-1.1.1-mysql.sql

(limited to 'schema/upgrade-1.1-1.1.1-mysql.sql')

diff --git a/schema/upgrade-1.1-1.1.1-mysql.sql b/schema/upgrade-1.1-1.1.1-mysql.sql
new file mode 100644
index 000000000..685582b89
--- /dev/null
+++ b/schema/upgrade-1.1-1.1.1-mysql.sql
@@ -0,0 +1,10 @@
+begin;
+
+alter table ttrss_entries add column num_comments integer;
+
+update ttrss_entries set num_comments = 0;
+
+alter table ttrss_entries change num_comments num_comments integer not null;
+alter table ttrss_entries alter column num_comments set default 0;
+
+commit;
-- 
cgit v1.2.3-54-g00ecf

