Skip to content

Commit

Permalink
fixes theforeman#23: Only run database migrations if they are any pen…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
ehelms committed Dec 6, 2019
1 parent f96b33b commit 6c8a513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
'DJANGO_SETTINGS_MODULE=pulpcore.app.settings',
"PULP_SETTINGS=${pulpcore::settings_file}",
],
refreshonly => true,
require => Postgresql::Server::Db[$pulpcore::postgresql_db_name],
unless => 'django-admin migrate --plan | grep "No planned migration operations"'
}

include redis
Expand Down

0 comments on commit 6c8a513

Please sign in to comment.