|
a/Allura/flyway/command.py |
|
b/Allura/flyway/command.py |
|
... |
|
... |
83 |
else:
|
83 |
else:
|
84 |
return latest_versions
|
84 |
return latest_versions
|
85 |
|
85 |
|
86 |
def _load_migrations(self):
|
86 |
def _load_migrations(self):
|
87 |
from .migrate import Migration
|
87 |
from .migrate import Migration
|
|
|
88 |
Migration.migrations_registry.clear()
|
88 |
for ep in pkg_resources.iter_entry_points(self.entry_point_section):
|
89 |
for ep in pkg_resources.iter_entry_points(self.entry_point_section):
|
89 |
self.log.debug('Loading migration module %s', ep.name)
|
90 |
self.log.debug('Loading migration module %s', ep.name)
|
90 |
Migration._current_migrations_module = ep.name
|
91 |
Migration._current_migrations_module = ep.name
|
91 |
ep.load()
|
92 |
reload(ep.load())
|
92 |
Migration._current_migrations_module = None
|
93 |
Migration._current_migrations_module = None
|