init:
dropdb $(db) || true
createdb $(db)
- psql $(db) < schema.sql
./mkindex.pl schema.sql | psql $(db)
test -f data.sql && psql $(db) < data.sql
create table catalog_webarchive (
uri text not null, -- unique index
- last_crawled timestamp
+ last_crawled timestamp,
+ primary key(id)
) inherits (catalogs) ;
-- Entries in Catalog
-- Pg General Bits entries
create table entries_pgbits (
- issue int not null -- unique index
+ issue int not null, -- unique index
+ primary key(id)
) inherits (entries) ;
--- Items in Entries
+-- Items for each Entry
create table items (
id serial,
title text,
create table items_est (
path text, -- unique index
uri text not null, -- unique index
- size int
+ size int,
+ primary key(id)
) inherits (items) ;
-- Tags for Entries