aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-06 16:31:44 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-06 16:31:44 -0500
commitf15c65a872c2a3138a437250ac4c78197d131ab3 (patch)
treea6abb683bf06b29deb01ef962a51607ba4942f14 /src
parent25dbdc13a7480f7d0a17859928e6437a90bb876a (diff)
downloadold-guff-f15c65a872c2a3138a437250ac4c78197d131ab3.tar.bz2
old-guff-f15c65a872c2a3138a437250ac4c78197d131ab3.zip
clean up migration messages
Diffstat (limited to 'src')
-rw-r--r--src/guff/database-updater.cr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/guff/database-updater.cr b/src/guff/database-updater.cr
index a6e2167..42686be 100644
--- a/src/guff/database-updater.cr
+++ b/src/guff/database-updater.cr
@@ -103,12 +103,12 @@ module Guff
# get version from database
version = @db.table_exists?("metadata") ? get_version : 0_i32
- puts "versions: db = %d, app = %d" % [
- version,
- CURRENT_VERSION,
- ]
-
if version < CURRENT_VERSION
+ puts "starting db migration (db = %d, app = %d)" % [
+ version,
+ CURRENT_VERSION,
+ ]
+
(version + 1).upto(CURRENT_VERSION) do |v|
migrate_to(v)
end
@@ -119,7 +119,7 @@ module Guff
# map version number to migration id
id = IDS[version]
m = MIGRATIONS[id]
- puts "migrating: %s" % [id]
+ puts " * migration: %s" % [id]
@db.transaction do
# exec queries