Skip to content

Commit

Permalink
Merge pull request #3912 from dlax/check-harvest-tables-on-dbinit
Browse files Browse the repository at this point in the history
Only create harvest tables if not already existing
  • Loading branch information
amercader committed Mar 27, 2018
2 parents 0420a45 + 2cd1186 commit 984bfb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/migration/versions/023_add_harvesting.py
Expand Up @@ -32,8 +32,8 @@ def upgrade(migrate_engine):
)

metadata.bind = migrate_engine
harvest_source_table.create()
harvesting_job_table.create()
harvest_source_table.create(checkfirst=True)
harvesting_job_table.create(checkfirst=True)

def downgrade(migrate_engine):
metadata.bind = migrate_engine
Expand Down

0 comments on commit 984bfb3

Please sign in to comment.