summaryrefslogtreecommitdiff
path: root/alter/alter.sql
diff options
context:
space:
mode:
Diffstat (limited to 'alter/alter.sql')
-rwxr-xr-xalter/alter.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/alter/alter.sql b/alter/alter.sql
new file mode 100755
index 0000000..b306ef5
--- /dev/null
+++ b/alter/alter.sql
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+mysql -u epg2vdr -pepg -Depg2vdr -e 'ALTER TABLE events ADD imagecount int(4) DEFAULT Null after extepnum;'
+mysql -u epg2vdr -pepg -Depg2vdr -e 'ALTER TABLE events CHANGE shorttext shorttext varchar(300) DEFAULT NULL;'
+mysql -u epg2vdr -pepg -Depg2vdr -e 'ALTER TABLE events CHANGE compshorttext compshorttext varchar(300) DEFAULT NULL;'
+mysql -u epg2vdr -pepg -Depg2vdr -e 'ALTER TABLE events CHANGE topic topic varchar(500) DEFAULT NULL;'
+mysql -u epg2vdr -pepg -Depg2vdr -e 'ALTER TABLE events CHANGE guest guest varchar(500) DEFAULT NULL;'
+mysql -u epg2vdr -pepg -Depg2vdr -e "update vdrs set dbapi = 4 where uuid = 'epgd';"
+