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.

18 lines
458 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE script_trigger (
  4. id CHAR(36) NOT NULL PRIMARY KEY,
  5. event VARCHAR(255) NOT NULL,
  6. device_match TEXT NOT NULL,
  7. parameter TEXT NOT NULL,
  8. script_target TEXT NOT NULL,
  9. script_name VARCHAR(255) NOT NULL,
  10. script_pre JSON NOT NULL,
  11. script_post JSON NOT NULL
  12. )
  13. -- +goose StatementEnd
  14. -- +goose Down
  15. -- +goose StatementBegin
  16. DROP TABLE IF EXISTS script_trigger;
  17. -- +goose StatementEnd