Changeset 79


Ignore:
Timestamp:
09/11/25 16:26:15 (3 days ago)
Author:
Kris Deugau
Message:

/trunk/uribl

Refresh SQL definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uribl/uridb.sql

    r27 r79  
    44);
    55
     6-- Live examples have been observed for URIs over 70 characters
    67CREATE TABLE urilist (
    7         uri varchar(70) primary key not null,
    8         list integer default 2,
    9         count integer default 1,
    10         added timestamp with time zone default now(),
    11         comment varchar(200) not null default ''
     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
    1213);
    1314
     15ALTER TABLE ONLY urilist
     16    ADD CONSTRAINT urilist_pkey PRIMARY KEY (uri);
     17
    1418CREATE TABLE waslisted (
    15         uri varchar(70) primary key not null,
    16         list integer default 2,
    17         count integer default 1,
    18         origadded timestamp with time zone default now(),
    19         comment varchar(200) not null default '',
    20         delisted timestamp with time zone default now()
     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()
    2125);
    2226
     27ALTER TABLE ONLY waslisted
     28    ADD CONSTRAINT waslisted_pkey PRIMARY KEY (uri, origadded);
Note: See TracChangeset for help on using the changeset viewer.