diff --git a/peewee_migrate/router.py b/peewee_migrate/router.py index 49f0075..78ab4cf 100644 --- a/peewee_migrate/router.py +++ b/peewee_migrate/router.py @@ -194,10 +194,11 @@ def run(self, name=None, fake=False): migrator = self.migrator for mname in diff: + if name and name != mname: + break + self.run_one(mname, migrator, fake=fake, force=fake) done.append(mname) - if name and name == mname: - break return done