From cd12486285e41dabda647719abcc2049491a62be Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Fri, 6 Dec 2019 10:54:25 -0500 Subject: [PATCH] fixes #23: Only run database migrations if they are any pending --- manifests/database.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/database.pp b/manifests/database.pp index a9cc4130..acdb15aa 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -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