stufflog graphql server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
394 B

5 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE log_task (
  4. log_id CHAR(24) NOT NULL,
  5. issue_id CHAR(32) NOT NULL,
  6. issue_task_id CHAR(48) NOT NULL,
  7. units INTEGER,
  8. duration BIGINT NOT NULL,
  9. PRIMARY KEY(log_id, issue_task_id),
  10. INDEX (issue_task_id),
  11. INDEX (issue_id)
  12. );
  13. -- +goose StatementEnd
  14. -- +goose Down
  15. -- +goose StatementBegin
  16. DROP TABLE log_task;
  17. -- +goose StatementEnd