Revision 01a055c6
Added by Thomas Noël almost 10 years ago
entrouvert/djommon/multitenant/management/commands/create_schemas.py | ||
---|---|---|
16 | 16 |
print self.style.NOTICE("=== Creating schema ") \ |
17 | 17 |
+ self.style.SQL_TABLE(tenant.schema_name) |
18 | 18 |
|
19 |
if not tenant.create_schema(check_if_exists=True): |
|
20 |
print self.style.ERROR(' Nothing to do') |
|
19 |
tenant.create_schema(check_if_exists=True) |
entrouvert/djommon/multitenant/management/commands/create_tenant.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
print self.style.NOTICE("=== Creating schema ") \ |
35 | 35 |
+ self.style.SQL_TABLE(tenant.schema_name) |
36 |
if not tenant.create_schema(check_if_exists=True): |
|
37 |
print self.style.ERROR(' Nothing to do: %r already exist' % hostname) |
|
36 |
tenant.create_schema(check_if_exists=True) |
Also available in: Unified diff
result of tenant.create_schema is undefined