| 
            Last change
 on this file since 82 was             79, checked in by Kris Deugau, 8 weeks ago           | 
        
        
          | 
             
/trunk/uribl 
 
Refresh SQL definition 
 
 
           | 
        
        
          | 
            File size:
            868 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | CREATE TABLE misc (
 | 
|---|
| 2 |     "key" character varying(30),
 | 
|---|
| 3 |     value character varying(255)
 | 
|---|
| 4 | );
 | 
|---|
| 5 | 
 | 
|---|
| 6 | -- Live examples have been observed for URIs over 70 characters
 | 
|---|
| 7 | CREATE TABLE urilist (
 | 
|---|
| 8 |     uri character varying NOT NULL,
 | 
|---|
| 9 |     list integer DEFAULT 2,
 | 
|---|
| 10 |     count integer DEFAULT 1,
 | 
|---|
| 11 |     added timestamp with time zone DEFAULT now(),
 | 
|---|
| 12 |     comment character varying DEFAULT ''::character varying NOT NULL
 | 
|---|
| 13 | );
 | 
|---|
| 14 | 
 | 
|---|
| 15 | ALTER TABLE ONLY urilist
 | 
|---|
| 16 |     ADD CONSTRAINT urilist_pkey PRIMARY KEY (uri);
 | 
|---|
| 17 | 
 | 
|---|
| 18 | CREATE TABLE waslisted (
 | 
|---|
| 19 |     uri character varying NOT NULL,
 | 
|---|
| 20 |     list integer DEFAULT 2,
 | 
|---|
| 21 |     count integer DEFAULT 1,
 | 
|---|
| 22 |     origadded timestamp with time zone DEFAULT now() NOT NULL,
 | 
|---|
| 23 |     comment character varying DEFAULT ''::character varying NOT NULL,
 | 
|---|
| 24 |     delisted timestamp with time zone DEFAULT now()
 | 
|---|
| 25 | );
 | 
|---|
| 26 | 
 | 
|---|
| 27 | ALTER TABLE ONLY waslisted
 | 
|---|
| 28 |     ADD CONSTRAINT waslisted_pkey PRIMARY KEY (uri, origadded);
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.