Changeset 598 for branches/stable/cgi-bin/ipdb.psql
- Timestamp:
- 05/16/13 16:43:45 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/ipdb.psql
r592 r598 33 33 ); 34 34 35 CREATE TABLE "temp" (36 "ofs" integer37 );38 39 35 CREATE TABLE "freeblocks" ( 40 36 "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY, … … 57 53 "createstamp" timestamp DEFAULT now(), 58 54 "modifystamp" timestamp DEFAULT now(), 55 "vrf" character varying(128) DEFAULT '' NOT NULL, 59 56 CHECK (((available = 'y'::bpchar) OR (available = 'n'::bpchar))) 60 57 ); … … 73 70 "custid" character varying(16) DEFAULT '', 74 71 swip character(1) DEFAULT 'n' 72 "vrf" character varying(128) DEFAULT '' NOT NULL, 75 73 ); 76 74 77 CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description, allocations.notes, allocations.circuitid FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, poolips.description, poolips.notes, poolips.circuitidFROM poolips;75 CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description, allocations.notes, allocations.circuitid, allocations.vrf FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.type, poolips.city, poolips.description, poolips.notes, poolips.circuitid, poolips.vrf FROM poolips; 78 76 79 77 CREATE TABLE "alloctypes" ( … … 154 152 155 153 CREATE TABLE "users" ( 156 "username" varchar( 16) NOT NULL PRIMARY KEY,157 "password" varchar( 16) DEFAULT '',158 "acl" varchar( 16) DEFAULT 'b'154 "username" varchar(40) NOT NULL PRIMARY KEY, 155 "password" varchar(60) DEFAULT '', 156 "acl" varchar(30) DEFAULT 'b' 159 157 ); 160 158 161 159 -- Default password is admin 162 160 INSERT INTO users VALUES ('admin','luef5C4XumqIs','bacdsA'); 163 164 CREATE TABLE "dns" (165 "ip" inet NOT NULL PRIMARY KEY,166 "hostname" character varying(128),167 "auto" character(1) DEFAULT 'y'168 );169 161 170 162 -- Network nodes - allows finding customers affected by a broken <x> quickly
Note:
See TracChangeset
for help on using the changeset viewer.