never fallback to public on migrate_schemas (#22873)

This commit is contained in:
Thomas NOËL 2018-03-29 10:41:44 +02:00
parent 3218eb5339
commit f3a2cb269b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class MigrateSchemasCommand(SyncCommon):
def run_migrations(self, schema_name, included_apps):
if int(self.options.get('verbosity', 1)) >= 1:
self._notice("=== Running migrate for schema %s" % schema_name)
connection.set_schema(schema_name)
connection.set_schema(schema_name, include_public=False)
command = MigrateCommand()
command.execute(*self.args, **self.options)
connection.set_schema_to_public()