0001-commands-make-migrate-print-tenant-names-in-default-.patch
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=1, **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 |
- |