Add debug logging, add forgotten column constraint

This commit is contained in:
Teemu Patja 2017-02-23 13:23:20 +02:00
parent 2d2d11fc9d
commit b112155134
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 2 additions and 2 deletions

View File

@ -8,5 +8,5 @@ ALTER TABLE "issues" ADD UNIQUE ("issue_id");
-- table for github PNG comment images
CREATE TABLE issue_comment (
id SERIAL PRIMARY KEY,
issue_id INTEGER REFERENCES issues (issue_id),
issue_id INTEGER REFERENCES issues (issue_id) UNIQUE,
png_data bytea);

View File

@ -37,7 +37,7 @@
:out-enc :bytes :in html)]
(if (= 0 exit)
out
(do (log/error "Failed to generate PNG file" err)
(do (log/error "Failed to generate PNG file" err exit out)
nil))))