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 ") \
|
print self.style.NOTICE("=== Creating schema ") \
|
||||||
+ self.style.SQL_TABLE(tenant.schema_name)
|
+ self.style.SQL_TABLE(tenant.schema_name)
|
||||||
|
|
||||||
if not tenant.create_schema(check_if_exists=True):
|
tenant.create_schema(check_if_exists=True)
|
||||||
print self.style.ERROR(' Nothing to do')
|
|
||||||
|
|
|
@ -33,5 +33,4 @@ class Command(BaseCommand):
|
||||||
print
|
print
|
||||||
print self.style.NOTICE("=== Creating schema ") \
|
print self.style.NOTICE("=== Creating schema ") \
|
||||||
+ self.style.SQL_TABLE(tenant.schema_name)
|
+ self.style.SQL_TABLE(tenant.schema_name)
|
||||||
if not tenant.create_schema(check_if_exists=True):
|
tenant.create_schema(check_if_exists=True)
|
||||||
print self.style.ERROR(' Nothing to do: %r already exist' % hostname)
|
|
||||||
|
|
Reference in New Issue