Skip to content

Commit

Permalink
Merge pull request #1 from gurneyalex/15.0-database_cleanup
Browse files Browse the repository at this point in the history
fix(database_cleanup): endless loop
  • Loading branch information
damdam-s authored May 3, 2022
2 parents 0ceacae + 7ba5a3b commit fb5e7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database_cleanup/models/purge_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def purge(self):
)

self.logger.info("Dropping table %s", line.name)
self.env.cr.execute("DROP TABLE %s", (IdentifierAdapter(line.name),))
self.env.cr.execute("DROP TABLE %s CASCADE", (IdentifierAdapter(line.name),))
line.write({"purged": True})
return True

Expand Down

0 comments on commit fb5e7df

Please sign in to comment.