Skip to content

Commit

Permalink
Merge pull request #184 from dotdash/fix_doctrine_migrations
Browse files Browse the repository at this point in the history
Fix running doctrine migrations with allocated PTY
  • Loading branch information
willdurand committed Aug 7, 2012
2 parents 9999303 + 6e9ab37 commit e67868a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/symfony2/doctrine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
desc "Executes a migration to a specified version or the latest available version"
task :migrate, :roles => :app, :except => { :no_release => true } do
currentVersion = nil
run "cd #{latest_release} && #{php_bin} #{symfony_console} doctrine:migrations:status --env=#{symfony_env_prod}", :once => true do |ch, stream, out|
run "cd #{latest_release} && #{php_bin} #{symfony_console} --no-ansi doctrine:migrations:status --env=#{symfony_env_prod}", :once => true do |ch, stream, out|
if stream == :out and out =~ /Current Version:[^$]+\(([\w]+)\)/
currentVersion = Regexp.last_match(1)
end
Expand Down

0 comments on commit e67868a

Please sign in to comment.