Projet

Général

Profil

0001-commands-make-migrate-print-tenant-names-in-default-.patch

Frédéric Péters, 15 novembre 2020 14:46

Télécharger (1,27 ko)

Voir les différences:

Subject: [PATCH] commands: make migrate print tenant names in default
 verbosity level (#48087)

 wcs/qommon/management/commands/migrate.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
wcs/qommon/management/commands/migrate.py
24 24
class Command(BaseCommand):
25 25
    help = 'Migrate databases'
26 26

  
27
    def handle(self, **options):
27
    def handle(self, verbosity, **options):
28 28
        Publisher = get_publisher_class()
29 29
        quixote.cleanup()
30 30
        pub = Publisher.create_publisher()
......
37 37
            pub.app_dir = tenant_path
38 38
            pub.set_config()
39 39
            if pub.is_using_postgresql():
40
                if verbosity:
41
                    print('Running migrations for', hostname)
40 42
                pub.migrate_sql()
41 43
                pub.cleanup()
42 44
            quixote.cleanup()
43
-