diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-03 09:46:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-03 09:46:39 +0100 |
commit | ddc16d8642b92972b9bfb7d47d2a0f415fd326bf (patch) | |
tree | 5a29e291a75dd1b33299b2269850dc9e16ac6fca /database-prepare-for-0.2.0.sh | |
parent | Add ban support: /rooms/$roomid/ban with { user_id : foo } (diff) | |
parent | Add database upgrade script (diff) | |
download | synapse-ddc16d8642b92972b9bfb7d47d2a0f415fd326bf.tar.xz |
Merge branch 'master' into develop
Diffstat (limited to 'database-prepare-for-0.2.0.sh')
-rwxr-xr-x | database-prepare-for-0.2.0.sh | 10 |
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;" |