Add timestamp column to node table

This commit is contained in:
2025-07-31 12:10:01 +02:00
parent ab1ddb7bd1
commit 764b65d094

View File

@@ -1,5 +1,6 @@
CREATE TABLE "node" ( CREATE TABLE "node" (
id INTEGER PRIMARY KEY, id INTEGER PRIMARY KEY,
time_stamp INTEGER NOT NULL,
hostname VARCHAR(255) NOT NULL, hostname VARCHAR(255) NOT NULL,
cluster VARCHAR(255) NOT NULL, cluster VARCHAR(255) NOT NULL,
subcluster VARCHAR(255) NOT NULL, subcluster VARCHAR(255) NOT NULL,
@@ -32,4 +33,4 @@ CREATE INDEX IF NOT EXISTS nodes_cluster_health ON node (cluster, health_state);
-- Add Indices For Increased Amounts of Tags -- Add Indices For Increased Amounts of Tags
CREATE INDEX IF NOT EXISTS tags_jobid ON jobtag (job_id); CREATE INDEX IF NOT EXISTS tags_jobid ON jobtag (job_id);
CREATE INDEX IF NOT EXISTS tags_tagid ON jobtag (tag_id); CREATE INDEX IF NOT EXISTS tags_tagid ON jobtag (tag_id);