poudboot/migrations/01_init.sql

23 lines
600 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
);
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
);