takezoe/gitbucket — pull request #202 by odz (2013-11-19 16:27:46+00:00)
Title: Resolves Error when deleting repsository with PR.

When someone deletes repository which has one ore more pull requests, an error is reported.

This error is caused by deleting row of ISSUE table before deleting row of PULL_REQUEST table. PULL_REQUEST table has foreign key references ISSUE table, so row of ISSUE table should be deleted after deletion of PULL_REQUEST table.