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.

21 lines
581 B

  1. -- +goose Up
  2. -- +goose StatementBegin
  3. CREATE TABLE event_handler
  4. (
  5. id INT NOT NULL AUTO_INCREMENT,
  6. event_name VARCHAR(255) NOT NULL,
  7. one_shot TINYINT NOT NULL DEFAULT 0,
  8. priority INT NOT NULL DEFAULT 0,
  9. target_kind VARCHAR(255) NOT NULL,
  10. target_value VARCHAR(255) NOT NULL,
  11. conditions JSON NOT NULL,
  12. actions JSON NOT NULL,
  13. PRIMARY KEY (id)
  14. );
  15. -- +goose StatementEnd
  16. -- +goose Down
  17. -- +goose StatementBegin
  18. DROP TABLE event_handler;
  19. -- +goose StatementEnd