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
21 lines
581 B
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE event_handler
|
|
(
|
|
id INT NOT NULL AUTO_INCREMENT,
|
|
event_name VARCHAR(255) NOT NULL,
|
|
one_shot TINYINT NOT NULL DEFAULT 0,
|
|
priority INT NOT NULL DEFAULT 0,
|
|
target_kind VARCHAR(255) NOT NULL,
|
|
target_value VARCHAR(255) NOT NULL,
|
|
conditions JSON NOT NULL,
|
|
actions JSON NOT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE event_handler;
|
|
-- +goose StatementEnd
|