Changeset 347
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r346 r347 296 296 my $dbh = shift; 297 297 my $hname = shift; 298 298 299 $hname =~ s/^\*\.//; # this should be impossible to find in the domains table. 299 300 my @hostbits = split /\./, $hname; 300 301 my $sth = $dbh->prepare("SELECT count(*),domain_id FROM domains WHERE domain = ? GROUP BY domain_id"); -
trunk/dns.sql
r342 r347 14 14 15 15 COPY misc (misc_id, key, value) FROM stdin; 16 1 dbversion 1. 016 1 dbversion 1.2 17 17 \. 18 18 … … 60 60 CREATE TABLE domains ( 61 61 domain_id serial NOT NULL, 62 "domain" character varying(80) NOT NULL ,62 "domain" character varying(80) NOT NULL PRIMARY KEY, 63 63 group_id integer DEFAULT 1 NOT NULL, 64 64 description character varying(255) DEFAULT ''::character varying NOT NULL, … … 70 70 CREATE TABLE revzones ( 71 71 rdns_id serial NOT NULL, 72 revnet cidr NOT NULL ,72 revnet cidr NOT NULL PRIMARY KEY, 73 73 group_id integer DEFAULT 1 NOT NULL, 74 74 description character varying(255) DEFAULT ''::character varying NOT NULL,
Note:
See TracChangeset
for help on using the changeset viewer.