Opened 9 years ago

Closed 9 years ago

#24703 closed Cleanup/optimization (fixed)

Use MigrationLoader in squashmigrations

Reported by: Marten Kenbeek Owned by: Marten Kenbeek
Component: Migrations Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


Just a small thing I noticed: squashmigrations creates a MigrationExecutor, but only ever uses the executor.loader attribute. It would be cleaner to directly use a MigrationLoader, same as in makemigrations and showmigrations.

Change History (4)

comment:1 by Marten Kenbeek, 9 years ago

Owner: changed from nobody to Marten Kenbeek
Status: newassigned

comment:2 by Markus Holtermann, 9 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Markus Holtermann, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Markus Holtermann <info@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 1521861:

Fixed #24703 -- Changed squashmigrations to use a MigrationLoader

Changed squashmigrations to not instantiate a MigrationExecutor,
but to directly use a MigrationLoader instance instead.

Note: See TracTickets for help on using tickets.
Back to Top