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.

20 lines
429 B

4 years ago
  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE device_state
  4. (
  5. device_id INT NOT NULL,
  6. hue DOUBLE NOT NULL,
  7. saturation DOUBLE NOT NULL,
  8. kelvin INT NOT NULL,
  9. power TINYINT NOT NULL,
  10. intensity INT NOT NULL,
  11. PRIMARY KEY (device_id)
  12. );
  13. -- +goose StatementEnd
  14. -- +goose Down
  15. -- +goose StatementBegin
  16. DROP TABLE device_state;
  17. -- +goose StatementEnd