From b17ede720c733ebffbe25164ff5c618df64bd32f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 16 Nov 2005 13:18:52 +0100 Subject: [PATCH] add 1->2 upgrade script for mysql --- schema/upgrade-1.0.7-1.0.8-mysql.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 schema/upgrade-1.0.7-1.0.8-mysql.sql diff --git a/schema/upgrade-1.0.7-1.0.8-mysql.sql b/schema/upgrade-1.0.7-1.0.8-mysql.sql new file mode 100644 index 00000000..c52441ce --- /dev/null +++ b/schema/upgrade-1.0.7-1.0.8-mysql.sql @@ -0,0 +1,12 @@ +begin; + +alter table ttrss_feeds add column purge_interval integer; + +update ttrss_feeds set purge_interval = 0; + +alter table ttrss_feeds modify column purge_interval integer not null; +alter table ttrss_feeds alter column purge_interval set default 0; + +update ttrss_version set schema_version = 2; + +commit;