diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-02 17:31:40 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-02 17:31:40 +0100 |
commit | d8a921f6a6cb63873656e13a9000d1f9cb161a0e (patch) | |
tree | d4620a5ac298e2b0d5c0bfd06d17077212b5c237 | |
parent | Un block quote list (diff) | |
download | synapse-d8a921f6a6cb63873656e13a9000d1f9cb161a0e.tar.xz |
Add database upgrade script v0.2.0
-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;" |