Fix size of columns for subset field of axletter
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 18 May 2010 14:04:34 +0000 (16:04 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 18 May 2010 14:04:53 +0000 (16:04 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.0.0/00_axletter.sql [new file with mode: 0644]
upgrade/1.0.0/update.sh [new file with mode: 0755]

diff --git a/upgrade/1.0.0/00_axletter.sql b/upgrade/1.0.0/00_axletter.sql
new file mode 100644 (file)
index 0000000..5040564
--- /dev/null
@@ -0,0 +1,3 @@
+ALTER TABLE axletter CHANGE subset subset LONGTEXT NULL DEFAULT NULL
+
+-- vim:set syntax=mysql:
diff --git a/upgrade/1.0.0/update.sh b/upgrade/1.0.0/update.sh
new file mode 100755 (executable)
index 0000000..928d1e4
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+. ../inc/pervasive.sh
+
+mailman_stop
+mailman_templates
+mailman_start
+
+###########################################################
+for sql in *.sql
+do
+    echo -n $sql
+    $MYSQL $DATABASE < $sql &>/dev/null || echo -n " ERROR"
+    echo .
+done