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
"""
migrator = Migrator(self.database)
# Removing the up_one to prevent running all
# migrations each time we got a new one.
# It's handled by migration.up() function.
# for name in self.done:
# self.up_one(name, migrator, True)
# Creating false migrations from the
for name in self.diff:
self.up_one(name, migrator, True)
return migrator
def compile(self, name, migrate="", rollback=""):