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
18 lines
458 B
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE script_trigger (
|
|
id CHAR(36) NOT NULL PRIMARY KEY,
|
|
event VARCHAR(255) NOT NULL,
|
|
device_match TEXT NOT NULL,
|
|
parameter TEXT NOT NULL,
|
|
script_target TEXT NOT NULL,
|
|
script_name VARCHAR(255) NOT NULL,
|
|
script_pre JSON NOT NULL,
|
|
script_post JSON NOT NULL
|
|
)
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS script_trigger;
|
|
-- +goose StatementEnd
|