mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
trying loading only the diff migrations at constructor
This commit is contained in:
parent
9dffc25cc8
commit
d39f93bfa5
@ -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=""):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user