todo notes

This commit is contained in:
Doug Hellmann 2014-11-01 19:47:08 +01:00
parent 1fa63aa892
commit 324a11f69f
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,8 @@ def run_migrations():
url = connect.get_url()
config.set_main_option("sqlalchemy.url", url)
command.upgrade(config, 'head')
# NOTE(dhellmann): Load migration settings from the plugins for
# processing special types of files, and run them.
if __name__ == '__main__':

View File

@ -103,6 +103,10 @@ def _update_project_files(session, proj_obj):
for num, content in enumerate(lines, 1):
session.add(Line(file=new_file, number=num, content=content))
# NOTE(dhellmann): Use stevedore to invoke plugins based on
# fnmatch of filename being read (use the filename, not the
# fullname.
def discover(repo_root):
"""Discover project-like directories under the repository root"""