lib/kpm/migrations.rb in kpm-0.2.4 vs lib/kpm/migrations.rb in kpm-0.3.0
- old
+ new
@@ -37,10 +37,11 @@
return nil if migrations.size == 0
dir ||= Dir.mktmpdir
@logger.debug("Storing migrations to #{dir}")
migrations.each do |migration|
+ @logger.info("Migration to run: #{migration[:name]}")
migration_path = Pathname.new(dir).join(migration[:name])
File.open(migration_path, 'w') do |file|
@logger.debug("Storing migration #{migration_path}")
file.write(migration[:sql])
end
@@ -58,10 +59,10 @@
metadata['tree'].each do |entry|
match_data = KILLBILL_MIGRATION_PATH.match(entry['path']) || JAVA_PLUGIN_MIGRATION_PATH.match(entry['path']) || RUBY_PLUGIN_MIGRATION_PATH.match(entry['path'])
next unless match_data
migration_name = match_data[1]
- @logger.info("Found migration #{migration_name}")
+ @logger.debug("Found migration #{migration_name}")
next if migrations_to_skip.include?(migration_name)
sql = nil
unless name_only
blob_metadata = get_as_json("#{entry['url']}?access_token=#{@oauth_token}")