Skip to content

Feature/milestone pausing #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@
"accountsAppUrl": "https://accounts.topcoder-dev.com",
"MAX_REVISION_NUMBER": 100,
"UNIQUE_GMAIL_VALIDATION": false,
"SSO_REFCODES": "[]"
"SSO_REFCODES": "[]",
"VALID_STATUSES_BEFORE_PAUSED": "[\"active\"]"
}
29 changes: 29 additions & 0 deletions migrations/20190502_status_history_create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--
-- Create table status history
--

CREATE TABLE status_history (
id bigint,
"reference" character varying(45) NOT NULL,
"referenceId" bigint NOT NULL,
"status" character varying(45) NOT NULL,
"comment" text,
"createdAt" timestamp with time zone,
"updatedAt" timestamp with time zone,
"createdBy" integer NOT NULL,
"updatedBy" integer NOT NULL
);

CREATE SEQUENCE status_history_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;

ALTER SEQUENCE status_history_id_seq OWNED BY status_history.id;

ALTER TABLE ONLY status_history ALTER COLUMN id SET DEFAULT nextval('status_history_id_seq'::regclass);

ALTER TABLE ONLY status_history
ADD CONSTRAINT status_history_pkey PRIMARY KEY (id);
Loading