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
416 B

4 years ago
4 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE issue_item (
  4. issue_item_id CHAR(48) NOT NULL PRIMARY KEY,
  5. issue_id CHAR(32) NOT NULL,
  6. item_id CHAR(32) NOT NULL,
  7. quantity INTEGER NOT NULL,
  8. acquired BOOLEAN NOT NULL,
  9. INDEX (acquired),
  10. INDEX (issue_id),
  11. INDEX (item_id)
  12. );
  13. -- +goose StatementEnd
  14. -- +goose Down
  15. -- +goose StatementBegin
  16. DROP TABLE issue_item;
  17. -- +goose StatementEnd