Skip to content

Commit

Permalink
update current db schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rodecker committed Apr 9, 2021
1 parent c051514 commit 7a589af
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions roles/adminscripts/files/ring-admin
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ CREATE TABLE machines
owner INTEGER NOT NULL,
tstamp INTEGER,
active BOOLEAN,
alive_v4 TINYINT DEFAULT NULL,
alive_v6 TINYINT DEFAULT NULL,
last_active INTEGER,
FOREIGN KEY(owner) REFERENCES users(id)
);
Expand Down Expand Up @@ -114,6 +116,25 @@ CREATE TABLE mremarks
machine INTEGER NOT NULL,
FOREIGN KEY(machine) REFERENCES machines(id)
);
CREATE TABLE ansible
(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
hostname VARCHAR(128) DEFAULT NULL,
unreachable TINYINT DEFAULT NULL,
ok INTEGER DEFAULT NULL,
changed INTEGER DEFAULT NULL,
skipped INTEGER DEFAULT NULL,
failures INTEGER DEFAULT NULL
);
CREATE TABLE health
(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
hostname VARCHAR(255) DEFAULT NULL,
family int(11) DEFAULT NULL,
summary VARCHAR(1024) DEFAULT NULL
);
'''

WEBSITETEXT = '''
Expand Down

0 comments on commit 7a589af

Please sign in to comment.