PHPCI
PHPCI copied to clipboard
Dashboard break when deleting project with builds
When project is deleted it's record from project table disappers, but in "build" table still appear builds with foriegn key to the deleted project. This cause an error in PHPCI/BuildFactory.php in line 44 and Dashboard does not work.
You need either mark projects as deleted in "project" table, or make cascade delete of all builds in "build" table.
Hi @dmtr81 - The build table's project_id column is already set as a foreign key to the project table, which is set to CASCADE both updates and deletes.