aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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