forked from IMA-WorldHealth/bhima
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(inventory): allow deletion from inventory
This commit removes the foreign key constraints from the inventory_log to allow deletion from the inventory. It also fixes the http headers sent twice error in the error handler. Closes IMA-WorldHealth#4147.
- Loading branch information
Showing
4 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* next migration rules */ | ||
|
||
ALTER TABLE inventory_log DROP FOREIGN KEY `inventory_log_ibfk_1`; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters