Changeset 342 for branches/stable
- Timestamp:
- 08/10/06 11:28:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/ipdb.psql
r334 r342 1 DROP DATABASE ipdb; 2 3 CREATE USER ipdb WITH PASSWORD 'ipdbpwd'; 4 1 5 CREATE DATABASE ipdb; 6 7 UPDATE pg_database SET datdba=(SELECT usesysid FROM pg_shadow WHERE usename='ipdb') 8 WHERE datname='ipdb'; 2 9 3 10 \connect ipdb ipdb … … 64 71 "pool" cidr DEFAULT '255.255.255.255/32' NOT NULL, 65 72 "ip" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY, 66 " custid" character varying(16) DEFAULT '' NOT NULL,73 "oldcustid" character varying(16) DEFAULT '' NOT NULL, 67 74 "city" character varying(30) DEFAULT '' NOT NULL, 68 75 "type" character(2) DEFAULT '' NOT NULL, … … 72 79 "circuitid" character varying(128) DEFAULT '' NOT NULL, 73 80 "privdata" text DEFAULT '' NOT NULL, 74 " newcustid" character varying(16) DEFAULT '',81 "custid" character varying(16) DEFAULT '', 75 82 "createstamp" timestamp DEFAULT now(), 76 83 "modifystamp" timestamp DEFAULT now(), … … 83 90 CREATE TABLE "allocations" ( 84 91 "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL PRIMARY KEY, 85 " custid" character varying(16) DEFAULT '',92 "oldcustid" character varying(16) DEFAULT '', 86 93 "type" character(2) DEFAULT '', 87 94 "city" character varying(30) DEFAULT '', … … 93 100 "modifystamp" timestamp DEFAULT now(), 94 101 "privdata" text DEFAULT '' NOT NULL, 95 " newcustid" character varying(16) DEFAULT '',102 "custid" character varying(16) DEFAULT '', 96 103 swip character(1) DEFAULT 'n' 97 104 ); … … 111 118 "listorder" integer DEFAULT 0, 112 119 "def_custid" character varying(16) DEFAULT '', 113 "arin_netname" character varying(20) DEFA ILT 'ISP'120 "arin_netname" character varying(20) DEFAULT 'ISP' 114 121 ); 115 122 … … 189 196 ); 190 197 198 -- Default password is admin 199 INSERT INTO users VALUES ('admin','luef5C4XumqIs','bacdsA'); 200 191 201 CREATE TABLE "dns" ( 192 202 "ip" inet NOT NULL PRIMARY KEY,
Note:
See TracChangeset
for help on using the changeset viewer.