mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 10:50:21 +00:00
Add database upgrade script
This commit is contained in:
parent
47c7dd590d
commit
d8a921f6a6
1 changed files with 10 additions and 0 deletions
10
database-prepare-for-0.2.0.sh
Executable file
10
database-prepare-for-0.2.0.sh
Executable file
|
@ -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;"
|
Loading…
Reference in a new issue