Changeset 316


Ignore:
Timestamp:
03/31/06 15:42:00 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Update SQL tabledef source file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/ipdb.psql

    r285 r316  
    1919
    2020REVOKE ALL on "customers" from PUBLIC;
    21 GRANT ALL on "customers" to "kdeugau";
    2221GRANT ALL on "customers" to "ipdb";
    2322
     
    2827
    2928REVOKE ALL on "masterblocks" from PUBLIC;
    30 GRANT ALL on "masterblocks" to "kdeugau";
    3129GRANT ALL on "masterblocks" to "ipdb";
    3230
     
    3937
    4038REVOKE ALL on "routed" from PUBLIC;
    41 GRANT ALL on "routed" to "kdeugau";
    4239GRANT ALL on "routed" to "ipdb";
     40GRANT SELECT on "routed" to "ipdb";
    4341
    4442CREATE TABLE "temp" (
     
    4745
    4846REVOKE ALL on "temp" from PUBLIC;
    49 GRANT ALL on "temp" to "kdeugau";
    5047GRANT ALL on "temp" to "ipdb";
    5148
     
    5855
    5956REVOKE ALL on "freeblocks" from PUBLIC;
    60 GRANT ALL on "freeblocks" to "kdeugau";
    6157GRANT ALL on "freeblocks" to "ipdb";
    6258
     
    7268        "circuitid" character varying(128) DEFAULT '' NOT NULL,
    7369        "privdata" text DEFAULT '' NOT NULL,
    74         "newcustid" integer,
     70        "newcustid" character varying(16) DEFAULT '',
    7571        "createstamp" timestamp DEFAULT now(),
    7672        "modifystamp" timestamp DEFAULT now(),
     
    7975
    8076REVOKE ALL on "poolips" from PUBLIC;
    81 GRANT ALL on "poolips" to "kdeugau";
    8277GRANT ALL on "poolips" to "ipdb";
    8378
     
    9489        "modifystamp" timestamp DEFAULT now(),
    9590        "privdata" text DEFAULT '' NOT NULL,
    96         "newcustid" integer
     91        "newcustid" character varying(16) DEFAULT '',
     92        swip character(1) DEFAULT 'n'
    9793);
    9894
    9995REVOKE ALL on "allocations" from PUBLIC;
    100 GRANT ALL on "allocations" to "kdeugau";
    10196GRANT ALL on "allocations" to "ipdb";
    10297
     
    10499
    105100REVOKE ALL on "searchme" from PUBLIC;
    106 GRANT ALL on "searchme" to "kdeugau";
    107101GRANT ALL on "searchme" to "ipdb";
    108102
     
    114108        "def_custid" character varying(16) DEFAULT ''
    115109);
    116 
    117 REVOKE ALL on "alloctypes" from PUBLIC;
    118 GRANT ALL on "alloctypes" to "kdeugau";
    119 GRANT ALL on "alloctypes" to "ipdb";
    120 
    121 CREATE TABLE "cities" (
    122         "id" serial NOT NULL PRIMARY KEY,
    123         "city" character varying(30) DEFAULT '' NOT NULL,
    124         "routing" character(1) DEFAULT 'n' NOT NULL
    125 );
    126 
    127 REVOKE ALL on "cities" from PUBLIC;
    128 GRANT ALL on "cities" to "kdeugau";
    129 GRANT ALL on "cities" to "ipdb";
    130 
    131 CREATE TABLE "alloctypes" (
    132         "type" character(2) DEFAULT '' NOT NULL,
    133         "listname" character varying(40) DEFAULT '',
    134         "dispname" character varying(40) DEFAULT '',
    135         "listorder" integer DEFAULT 0,
    136         "def_custid" character varying(16) DEFAULT '',
    137         Constraint "alloctypes_pkey" Primary Key ("type")
    138 );
    139 
    140 REVOKE ALL on "alloctypes" from PUBLIC;
    141 GRANT ALL on "alloctypes" to "kdeugau";
    142 GRANT ALL on "alloctypes" to "ipdb";
    143110
    144111COPY "alloctypes" FROM stdin;
     
    167134wr      WAN block       WAN block       220     6750400
    168135\.
     136
     137REVOKE ALL on "alloctypes" from PUBLIC;
     138GRANT ALL on "alloctypes" to "ipdb";
     139
     140CREATE TABLE "cities" (
     141        "id" serial NOT NULL PRIMARY KEY,
     142        "city" character varying(30) DEFAULT '' NOT NULL,
     143        "routing" character(1) DEFAULT 'n' NOT NULL
     144);
     145
     146REVOKE ALL on "cities" from PUBLIC;
     147GRANT ALL on "cities" to "ipdb";
    169148
    170149--
Note: See TracChangeset for help on using the changeset viewer.