summaryrefslogtreecommitdiff
path: root/schema/upgrade-1.1.3-1.1.4-mysql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-26 07:39:09 +0100
committerAndrew Dolgov <[email protected]>2006-02-26 07:39:09 +0100
commit4bc760da51ebb36a13edf8b34d3efee0276abaf6 (patch)
treeee200659e16417b331a29a5d95e7bcc380b3d83c /schema/upgrade-1.1.3-1.1.4-mysql.sql
parent63147705ab24244d3cee607cdf4f2024d2acab2a (diff)
add author column to ttrss_entries, add upgrade script for 1.1.4, bump schema version
Diffstat (limited to 'schema/upgrade-1.1.3-1.1.4-mysql.sql')
-rw-r--r--schema/upgrade-1.1.3-1.1.4-mysql.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/schema/upgrade-1.1.3-1.1.4-mysql.sql b/schema/upgrade-1.1.3-1.1.4-mysql.sql
new file mode 100644
index 000000000..a4e2e7ab5
--- /dev/null
+++ b/schema/upgrade-1.1.3-1.1.4-mysql.sql
@@ -0,0 +1,9 @@
+alter table ttrss_entries add column author varchar(250);
+
+update ttrss_entries set author = ;;;
+
+alter table ttrss_entries change author author varchar(250) not null;
+alter table ttrss_entries alter column author set default '';
+
+update ttrss_version set schema_version = 6;
+