open-bounty/resources/migrations/20170224164317-pr-updated-column.up.sql
Teemu Patja 9cb48b5183
Bounties view + related backend functionality & more
Changes to bounty/pull-request data model and logic
* save git sha of pull request's HEAD instead of possible merge commit
  and save it for opened, merged and closed events
* only look for bounties being accepted in pull-request closed via
  merge events (no need for compilicated logic with issue-closed event)
* pull_request now has issue_id column to make many sql queries
  simpler

Frontend
* owner-bounties app-db structure changes
* bounties view with confirm pending payout UI

Other
* removed lots of unused legacy code
* bug fixes + refactoring
* added comments + TODOs
2017-02-25 00:15:44 +02:00

5 lines
183 B
SQL

ALTER TABLE "public"."pull_requests"
ADD COLUMN "updated" timestamp without time zone DEFAULT timezone('utc'::text, now()),
ADD COLUMN "issue_id" integer,
ADD UNIQUE ("pr_id");