From f15c65a872c2a3138a437250ac4c78197d131ab3 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 6 Mar 2016 16:31:44 -0500 Subject: clean up migration messages --- src/guff/database-updater.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/guff') 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 -- cgit v1.2.3