mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-02 20:45:36 +01:00
11 lines
345 B
Bash
11 lines
345 B
Bash
#!/bin/sh
|
|
|
|
exists=$(sqlite3 db/proxydb "SELECT value FROM cyphernode_props WHERE property='pay_index'")
|
|
if [ -z "${exists}" ]; then
|
|
# pay_index not found, let's migrate
|
|
echo "Migrating database from v0.1 to v0.2..."
|
|
cat sqlmigrate20190104_0.1-0.2.sql | sqlite3 $DB_FILE
|
|
else
|
|
echo "Database v0.1 to v0.2 migration already done, skipping!"
|
|
fi
|