PHPCI icon indicating copy to clipboard operation
PHPCI copied to clipboard

Dashboard break when deleting project with builds

Open dmtr81 opened this issue 8 years ago • 1 comments

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.

dmtr81 avatar Mar 09 '16 11:03 dmtr81

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.

dancryer avatar Apr 27 '16 15:04 dancryer