Loris
Loris copied to clipboard
[datadict] `data_dictionary_builder` bug
Describe the bug
Running https://github.com/aces/Loris/blob/main/modules/datadict/test/TestPlan.md, last step fails on test v26 vm.
PHP Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`test_dev_260`.`publication_parameter_type_rel`, CONSTRAINT `FK_publication_parameter_type_rel_ParameterTypeID` FOREIGN KEY (`ParameterTypeID`) REFERENCES `parameter_type` (`ParameterTypeID`)) in /var/www/Loris/php/libraries/Database.class.inc:645
Stack trace:
#0 /var/www/Loris/php/libraries/Database.class.inc(645): PDO->exec()
#1 /var/www/Loris/tools/exporters/data_dictionary_builder.php(65): Database->run()
#2 {main}
thrown in /var/www/Loris/php/libraries/Database.class.inc on line 645
To Reproduce Steps to reproduce the behavior (attach screenshots if applicable):
- Run the script.
tools/exporters/data_dictionary_builder.php
What did you expect to happen? should update the data dict
Browser Environment (please complete the following information):
- OS: 6.6.10-1-MANJARO
- Browser: Firefox 121.0.1 (64-bit)
Server Environment (if known): v26 test vm