summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-02 17:31:40 +0100
committerErik Johnston <erik@matrix.org>2014-09-02 17:31:40 +0100
commitd8a921f6a6cb63873656e13a9000d1f9cb161a0e (patch)
treed4620a5ac298e2b0d5c0bfd06d17077212b5c237
parentUn block quote list (diff)
downloadsynapse-d8a921f6a6cb63873656e13a9000d1f9cb161a0e.tar.xz
Add database upgrade script v0.2.0
-rwxr-xr-xdatabase-prepare-for-0.2.0.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/database-prepare-for-0.2.0.sh b/database-prepare-for-0.2.0.sh
new file mode 100755
index 0000000000..e90171010b
--- /dev/null
+++ b/database-prepare-for-0.2.0.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# This is will prepare a synapse database for running with v0.2.0 of synapse. 
+
+set -e
+
+cp "$1" "$1.bak"
+
+sqlite3 "$1" < "synapse/storage/schema/im.sql" 
+sqlite3 "$1" <<< "PRAGMA user_version = 2;"