Skip to content

Commit

Permalink
Merge pull request #3355 from ckan/3354-tests-keep-migrate-table
Browse files Browse the repository at this point in the history
[#3354] Migrate table is kept during tests
  • Loading branch information
wardi committed Dec 9, 2016
2 parents 124547a + 739e5b0 commit 727fe76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/model/__init__.py
Expand Up @@ -255,6 +255,8 @@ def delete_all(self):
else:
tables = reversed(self.metadata.sorted_tables)
for table in tables:
if table.name == 'migrate_version':
continue
connection.execute('delete from "%s"' % table.name)
self.session.commit()
log.info('Database table data deleted')
Expand Down

0 comments on commit 727fe76

Please sign in to comment.