mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Removing the up_one in the constructor to prevent running all migration each time we got a new one. It's handled by migration.up() function. This function was not creating fake migrations.
This commit is contained in:
parent
986576f243
commit
1e2ec6b643
@ -369,11 +369,12 @@ class MigrationManager(object):
|
||||
@cached_property
|
||||
def migrator(self) -> Migrator:
|
||||
"""
|
||||
Create migrator and setup it with fake migrations.
|
||||
Create migrator
|
||||
"""
|
||||
migrator = Migrator(self.database)
|
||||
for name in self.done:
|
||||
self.up_one(name, migrator, True)
|
||||
# Removing the up_one to prevent running all migration each time we got a new one. it's handled by migration.up
|
||||
#for name in self.done:
|
||||
# self.up_one(name, migrator, True)
|
||||
return migrator
|
||||
|
||||
def compile(self, name, migrate="", rollback=""):
|
||||
|
Loading…
Reference in New Issue
Block a user