From c011b36b859ea55f289050904cc97379ceabea23 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Nov 2010 19:12:49 +0300 Subject: [PATCH] add upgrade files for schema #74 --- schema/versions/mysql/74.sql | 9 +++++++++ schema/versions/pgsql/74.sql | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 schema/versions/mysql/74.sql create mode 100644 schema/versions/pgsql/74.sql diff --git a/schema/versions/mysql/74.sql b/schema/versions/mysql/74.sql new file mode 100644 index 000000000..d13856ea9 --- /dev/null +++ b/schema/versions/mysql/74.sql @@ -0,0 +1,9 @@ +begin; + +alter table ttrss_user_entries add column label_cache text; +update ttrss_user_entries set label_cache = ''; +alter table ttrss_user_entries change label_cache label_cache text not null; + +update ttrss_version set schema_version = 74; + +commit; diff --git a/schema/versions/pgsql/74.sql b/schema/versions/pgsql/74.sql new file mode 100644 index 000000000..22c95c5d3 --- /dev/null +++ b/schema/versions/pgsql/74.sql @@ -0,0 +1,9 @@ +begin; + +alter table ttrss_user_entries add column label_cache text; +update ttrss_user_entries set label_cache = ''; +alter table ttrss_user_entries alter column label_cache set not null; + +update ttrss_version set schema_version = 74; + +commit;