deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [5/5] git commit: Core: Re-use deltacloud-db-migrate in the Rake task
Date Tue, 19 Feb 2013 09:11:23 GMT
Updated Branches:
  refs/heads/master 2a9e21a0b -> 92cf8dd4d


Core: Re-use deltacloud-db-migrate in the Rake task


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/3c23c18c
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/3c23c18c
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/3c23c18c

Branch: refs/heads/master
Commit: 3c23c18cbb3aa2d78d077d5b2dd00af8110dc11e
Parents: 415a9ea
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Mon Feb 18 16:18:47 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Feb 19 10:10:57 2013 +0100

----------------------------------------------------------------------
 server/Rakefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3c23c18c/server/Rakefile
----------------------------------------------------------------------
diff --git a/server/Rakefile b/server/Rakefile
index 346df0a..f472b6b 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -46,13 +46,13 @@ Gem::PackageTask.new(spec) do |pkg|
   pkg.need_tar = true
 end
 
+require 'require_relative' if RUBY_VERSION < '1.9'
+require_relative './lib/initializers/mock_initialize'
+
 namespace :db do
   desc 'Execute the database migrations'
   task 'migrate' do
-    ENV['API_VERBOSE'] = 'true'
-    load File.join(File.dirname(__FILE__), 'lib', 'db.rb')
-    db = Deltacloud.database
-    Sequel::Migrator.apply(db, File.join(File.dirname(__FILE__), 'db', 'migrations'))
+    load File.join(File.dirname(__FILE__), 'bin', 'deltacloud-db-upgrade')
   end
 end
 


Mime
View raw message