Committed for test

This commit is contained in:
2023-05-15 16:44:17 -05:00
parent bef8309d20
commit d262c17e2e
8 changed files with 188 additions and 3 deletions

View File

@@ -51,4 +51,8 @@ CREATE TABLE IF NOT EXISTS crontabs (
crontab_created_timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
crontab_modified_timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
crontab_data BLOB NOT NULL
);
);
CREATE VIEW IF NOT EXISTS crontab_exists AS
SELECT a.name, 1 FROM crontabs a WHERE EXISTS (SELECT 1 FROM crontabs b WHERE b.name = a.name);