]> git.wh0rd.org Git - tt-rss.git/commitdiff
add missing schema files
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 11:48:39 +0000 (12:48 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 16 Jan 2009 11:48:39 +0000 (12:48 +0100)
schema/versions/mysql/49.sql [new file with mode: 0644]
schema/versions/pgsql/49.sql [new file with mode: 0644]

diff --git a/schema/versions/mysql/49.sql b/schema/versions/mysql/49.sql
new file mode 100644 (file)
index 0000000..812f3e6
--- /dev/null
@@ -0,0 +1,5 @@
+alter table ttrss_counters_cache add column updated datetime;
+update ttrss_counters_cache set updated = NOW();
+alter table ttrss_counters_cache change updated updated datetime not null;
+
+update ttrss_version set schema_version = 49;
diff --git a/schema/versions/pgsql/49.sql b/schema/versions/pgsql/49.sql
new file mode 100644 (file)
index 0000000..6efd919
--- /dev/null
@@ -0,0 +1,9 @@
+begin;
+
+alter table ttrss_counters_cache add column updated timestamp;
+update ttrss_counters_cache set updated = NOW();
+alter table ttrss_counters_cache alter column updated set not null;
+
+update ttrss_version set schema_version = 49;
+
+commit;