From 3b912da52d982f81ffb9cf2d025fe87cbd3f7450 Mon Sep 17 00:00:00 2001 From: kexkey Date: Sat, 2 Feb 2019 11:51:11 -0500 Subject: [PATCH] Migration based on feature, not version --- proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sh b/proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sh index d1c4665..86e36f2 100644 --- a/proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sh +++ b/proxy_docker/app/data/sqlmigrate20190104_0.1-0.2.sh @@ -1,10 +1,11 @@ #!/bin/sh +echo "Checking for full LN support in DB..." 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..." + echo "Migrating database for full LN support..." cat sqlmigrate20190104_0.1-0.2.sql | sqlite3 $DB_FILE else - echo "Database v0.1 to v0.2 migration already done, skipping!" + echo "Database full LN support migration already done, skipping!" fi