diff options
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch')
4 files changed, 40 insertions, 0 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/dchecks.sql b/upgrades/dbpatches/1.3/postgresql/patch/dchecks.sql new file mode 100644 index 00000000..5cf5d873 --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/dchecks.sql @@ -0,0 +1,7 @@ +CREATE TABLE dchecks ( + dcheckid bigint DEFAULT '0' NOT NULL, + druleid bigint DEFAULT '0' NOT NULL, + type integer DEFAULT '0' NOT NULL, + ports varchar(255) DEFAULT '0' NOT NULL, + PRIMARY KEY (dcheckid) +); diff --git a/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql b/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql new file mode 100644 index 00000000..37f3649e --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/dhosts.sql @@ -0,0 +1,9 @@ +CREATE TABLE dhosts ( + dhostid bigint DEFAULT '0' NOT NULL, + druleid bigint DEFAULT '0' NOT NULL, + ip varchar(15) DEFAULT '' NOT NULL, + status integer DEFAULT '0' NOT NULL, + lastup integer DEFAULT '0' NOT NULL, + lastdown integer DEFAULT '0' NOT NULL, + PRIMARY KEY (dhostid) +); diff --git a/upgrades/dbpatches/1.3/postgresql/patch/drules.sql b/upgrades/dbpatches/1.3/postgresql/patch/drules.sql new file mode 100644 index 00000000..f05f14b9 --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/drules.sql @@ -0,0 +1,14 @@ +CREATE TABLE drules ( + druleid bigint DEFAULT '0' NOT NULL, + name varchar(255) DEFAULT '' NOT NULL, + ipfirst varchar(15) DEFAULT '' NOT NULL, + iplast varchar(15) DEFAULT '' NOT NULL, + delay integer DEFAULT '0' NOT NULL, + nextcheck integer DEFAULT '0' NOT NULL, + status integer DEFAULT '0' NOT NULL, + upevent integer DEFAULT '0' NOT NULL, + downevent integer DEFAULT '0' NOT NULL, + svcupevent integer DEFAULT '0' NOT NULL, + svcdownevent integer DEFAULT '0' NOT NULL, + PRIMARY KEY (druleid) +); diff --git a/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql b/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql new file mode 100644 index 00000000..3a2ec37a --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/dservices.sql @@ -0,0 +1,10 @@ +CREATE TABLE dservices ( + dserviceid bigint DEFAULT '0' NOT NULL, + dhostid bigint DEFAULT '0' NOT NULL, + type integer DEFAULT '0' NOT NULL, + port integer DEFAULT '0' NOT NULL, + status integer DEFAULT '0' NOT NULL, + lastup integer DEFAULT '0' NOT NULL, + lastdown integer DEFAULT '0' NOT NULL, + PRIMARY KEY (dserviceid) +); |