lib/zen/task/package.rake in zen-0.3 vs lib/zen/task/package.rake in zen-0.4
- old
+ new
@@ -10,11 +10,11 @@
puts "* #{name}\n #{pkg.about}"
end
end
end
- desc 'Migrates a package to a certain version'
+ desc 'Migrates a specific package'
task :migrate, :name, :version do |task, args|
require File.expand_path('../../../zen', __FILE__)
if !args[:name]
abort "You need to specify the name of a package to migrate"
@@ -47,11 +47,8 @@
abort "The directory #{dir} does not exist."
end
table = 'migrations_package_' + package.name.to_s
- Ramaze::Log.info('Migrating package...')
-
- # Run all migrations
- Sequel::Migrator.run(Zen.database, dir, :table => table, :target => version)
+ Zen::Migrator.run(package.name, dir, table, version)
end
end