trying loading only the diff migrations at constructor

This commit is contained in:
Silversthorn 2024-03-23 11:25:05 +01:00
parent 9dffc25cc8
commit d39f93bfa5

View File

@ -372,11 +372,9 @@ class MigrationManager(object):
Create migrator Create migrator
""" """
migrator = Migrator(self.database) migrator = Migrator(self.database)
# Removing the up_one to prevent running all # Creating false migrations from the
# migrations each time we got a new one. for name in self.diff:
# It's handled by migration.up() function. self.up_one(name, migrator, True)
# for name in self.done:
# self.up_one(name, migrator, True)
return migrator return migrator
def compile(self, name, migrate="", rollback=""): def compile(self, name, migrate="", rollback=""):