diff --git a/entrouvert/djommon/multitenant/management/commands/create_schemas.py b/entrouvert/djommon/multitenant/management/commands/create_schemas.py index 0b243f5..a92e783 100644 --- a/entrouvert/djommon/multitenant/management/commands/create_schemas.py +++ b/entrouvert/djommon/multitenant/management/commands/create_schemas.py @@ -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) diff --git a/entrouvert/djommon/multitenant/management/commands/create_tenant.py b/entrouvert/djommon/multitenant/management/commands/create_tenant.py index 1d72195..ed9dded 100644 --- a/entrouvert/djommon/multitenant/management/commands/create_tenant.py +++ b/entrouvert/djommon/multitenant/management/commands/create_tenant.py @@ -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)