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.

16 lines
330 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE device_tag
  4. (
  5. device_id INT NOT NULL,
  6. tag_name VARCHAR(255) NOT NULL,
  7. PRIMARY KEY (device_id, tag_name),
  8. INDEX (tag_name)
  9. );
  10. -- +goose StatementEnd
  11. -- +goose Down
  12. -- +goose StatementBegin
  13. DROP TABLE device_tag;
  14. -- +goose StatementEnd