multitenant migrate_schemas: convert array to set to speedup search
gitea/hobo/pipeline/head This commit looks good
Details
gitea/hobo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2fbdd2015e
commit
b271fd2417
|
@ -63,11 +63,11 @@ class MigrateSchemasCommand(SyncCommon):
|
|||
start_datetime = localtime()
|
||||
for step, tenant in enumerate(tenants, start=1):
|
||||
connection.set_tenant(tenant, include_public=False)
|
||||
applied_migrations = self.get_applied_migrations(app_labels)
|
||||
applied_migrations = {x for x in self.get_applied_migrations(app_labels)}
|
||||
if options.get('fake') or options.get('migration_name') or options.get('app_label'):
|
||||
# never skip migrations if explicit migration actions
|
||||
# are given.
|
||||
applied_migrations = []
|
||||
applied_migrations = set()
|
||||
if all([x in applied_migrations for x in all_migrations]):
|
||||
if int(self.options.get('verbosity', 1)) >= 1:
|
||||
self._notice(
|
||||
|
|
Loading…
Reference in New Issue