Skip to content

Commit

Permalink
Add a limitation involving cascade deletions on a circular dependency #…
Browse files Browse the repository at this point in the history
…19 (#21)

* Add a limitation involving cascade deletions on a circular dependency

* Refine the limitations description

* Fix --tables limitation
  • Loading branch information
shuto-facengineer authored Feb 19, 2024
1 parent 5862e7d commit 3ee90ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ To solve the preceding issues, this tool works as follows.

* This tool does not guarantee the atomicity of deletion. If you access the rows that are being deleted, you will get the inconsistent view of the database.
* This tool does not delete rows which were inserted while the tool was running.
* This tool does not support truncating tables that use foreign key constraints in some scenarios:
* If there is a circular dependency among the tables, truncation will be failed.
* If --tables is used for a table that is referenced by other tables with ON DELETE CASCADE, such tables will also be truncated.
* If `--exclude-tables` is used only for the referencing table that has ON DELETE CASCADE, that table will be truncated by cascade-deletion of the referenced table.

## Install

Expand Down

0 comments on commit 3ee90ea

Please sign in to comment.