poudboot/migrations/01_init.sql

15 lines
382 B
MySQL
Raw Normal View History

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-05 05:21:02 +00:00
CREATE TABLE IF NOT EXISTS local_action (
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 04:48:04 +00:00
PRIMARY KEY (jail_name, tree, set_name)
);