Skip to content

Commit

Permalink
[#3354] Migrate table is kept during tests when the rows of all the o…
Browse files Browse the repository at this point in the history
…ther tables is deleted.
  • Loading branch information
David Read authored and wardi committed Dec 15, 2016
1 parent 6205381 commit 2b33801
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 2b33801

Please sign in to comment.