result of tenant.create_schema is undefined
This commit is contained in:
parent
ad0757e72f
commit
01a055c619
|
@ -16,5 +16,4 @@ class Command(BaseCommand):
|
|||
print self.style.NOTICE("=== Creating schema ") \
|
||||
+ self.style.SQL_TABLE(tenant.schema_name)
|
||||
|
||||
if not tenant.create_schema(check_if_exists=True):
|
||||
print self.style.ERROR(' Nothing to do')
|
||||
tenant.create_schema(check_if_exists=True)
|
||||
|
|
|
@ -33,5 +33,4 @@ class Command(BaseCommand):
|
|||
print
|
||||
print self.style.NOTICE("=== Creating schema ") \
|
||||
+ self.style.SQL_TABLE(tenant.schema_name)
|
||||
if not tenant.create_schema(check_if_exists=True):
|
||||
print self.style.ERROR(' Nothing to do: %r already exist' % hostname)
|
||||
tenant.create_schema(check_if_exists=True)
|
||||
|
|
Reference in New Issue