Skip to content

Commit

Permalink
Merge pull request #80 from dimagi/sk/fix-migrations
Browse files Browse the repository at this point in the history
fix migrations
  • Loading branch information
snopoke authored May 17, 2018
2 parents 87bb5c8 + aebf35c commit 20d76c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commcare_export/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def set_checkpoint(self, query, query_md5, checkpoint_time=None, run_complete=Fa
def create_checkpoint_table(self):
from alembic import command, config
cfg = config.Config(os.path.join(self.migrations_repository, 'alembic.ini'))
cfg.set_main_option('script_location', self.migrations_repository)
with self.engine.begin() as connection:
cfg.attributes['connection'] = connection
command.upgrade(cfg, "head")
Expand Down
Empty file added migrations/__init__.py
Empty file.
Empty file added migrations/versions/__init__.py
Empty file.

0 comments on commit 20d76c8

Please sign in to comment.