2024-05-05 04:48:04 +00:00
|
|
|
PRAGMA foreign_keys = ON;
|
|
|
|
|
2024-05-05 05:21:02 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS global_action (
|
2024-05-05 04:48:04 +00:00
|
|
|
name TEXT NOT NULL PRIMARY KEY,
|
2024-05-05 05:21:02 +00:00
|
|
|
next_run INTEGER DEFAULT 0 NOT NULL
|
2024-05-05 04:48:04 +00:00
|
|
|
);
|
|
|
|
|
2024-05-07 12:54:14 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS jail_action (
|
|
|
|
name TEXT NOT NULL,
|
|
|
|
jail_name TEXT NOT NULL,
|
|
|
|
next_run INTEGER DEFAULT 0 NOT NULL,
|
|
|
|
PRIMARY KEY (name, jail_name)
|
|
|
|
);
|
|
|
|
|
2024-05-05 05:21:02 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS local_action (
|
2024-05-05 14:48:06 +00:00
|
|
|
name TEXT NOT NULL,
|
2024-05-05 04:48:04 +00:00
|
|
|
jail_name TEXT NOT NULL,
|
|
|
|
tree TEXT NOT NULL,
|
|
|
|
set_name TEXT NOT NULL,
|
2024-05-05 05:21:02 +00:00
|
|
|
next_run INTEGER DEFAULT 0 NOT NULL,
|
2024-05-05 14:48:06 +00:00
|
|
|
PRIMARY KEY (name, jail_name, tree, set_name)
|
2024-05-05 04:48:04 +00:00
|
|
|
);
|