]> git.wh0rd.org Git - tt-rss.git/commitdiff
add upgrade files for schema #74
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 16:12:49 +0000 (19:12 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 16:12:49 +0000 (19:12 +0300)
schema/versions/mysql/74.sql [new file with mode: 0644]
schema/versions/pgsql/74.sql [new file with mode: 0644]

diff --git a/schema/versions/mysql/74.sql b/schema/versions/mysql/74.sql
new file mode 100644 (file)
index 0000000..d13856e
--- /dev/null
@@ -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 (file)
index 0000000..22c95c5
--- /dev/null
@@ -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;