Last change
on this file since 79 was 79, checked in by Kris Deugau, 3 days ago |
/trunk/uribl
Refresh SQL definition
|
File size:
868 bytes
|
Rev | Line | |
---|
[27] | 1 | CREATE TABLE misc (
|
---|
| 2 | "key" character varying(30),
|
---|
| 3 | value character varying(255)
|
---|
| 4 | );
|
---|
| 5 |
|
---|
[79] | 6 | -- Live examples have been observed for URIs over 70 characters
|
---|
[27] | 7 | CREATE TABLE urilist (
|
---|
[79] | 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
|
---|
[27] | 13 | );
|
---|
| 14 |
|
---|
[79] | 15 | ALTER TABLE ONLY urilist
|
---|
| 16 | ADD CONSTRAINT urilist_pkey PRIMARY KEY (uri);
|
---|
| 17 |
|
---|
[27] | 18 | CREATE TABLE waslisted (
|
---|
[79] | 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()
|
---|
[27] | 25 | );
|
---|
| 26 |
|
---|
[79] | 27 | ALTER TABLE ONLY waslisted
|
---|
| 28 | ADD CONSTRAINT waslisted_pkey PRIMARY KEY (uri, origadded);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.