open-bounty/resources/migrations/20170220210009-comment-png-storage.up.sql
Teemu Patja 9b972625e0
Rewrite Github comment PNG functionality
* removed old swing JEditorPane based html to png rendering due to
  it's lack of support for modern css
* new implementation uses wkhtmltoimage (on prod server via wrapper
  script using xvfb)
* no longer generating image on every GET request for QR, but rather
  generating image when a bounty is cretaed or contract balance
  changes
* images stored to DB
* comment image design updated according to UI spec
2017-02-21 10:49:25 +02:00

13 lines
320 B
SQL

-- this column was never used
ALTER TABLE "repositories" DROP COLUMN IF EXISTS "updated";
-- needde for foreign key
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),
png_data bytea);