mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-12 04:49:24 -05:00
11 lines
211 B
Bash
11 lines
211 B
Bash
|
#!/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;"
|