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.