Add a small script to copy a table in x5dat manually.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Feb 2010 12:29:13 +0000 (13:29 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Feb 2010 12:31:56 +0000 (13:31 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
upgrade/account/copytable.sh [new file with mode: 0755]

diff --git a/upgrade/account/copytable.sh b/upgrade/account/copytable.sh
new file mode 100755 (executable)
index 0000000..b62a512
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "drop table if exists $2; create table $2 like $1; alter table $2 engine = innodb; insert into $2 select * from $1;" | mysql x5dat