summary refs log tree commit diff
path: root/database-prepare-for-0.2.0.sh
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-03 09:46:39 +0100
committerErik Johnston <erik@matrix.org>2014-09-03 09:46:39 +0100
commitddc16d8642b92972b9bfb7d47d2a0f415fd326bf (patch)
tree5a29e291a75dd1b33299b2269850dc9e16ac6fca /database-prepare-for-0.2.0.sh
parentAdd ban support: /rooms/$roomid/ban with { user_id : foo } (diff)
parentAdd database upgrade script (diff)
downloadsynapse-ddc16d8642b92972b9bfb7d47d2a0f415fd326bf.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'database-prepare-for-0.2.0.sh')
-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;"