Overview
Comment: | added some indexes, fixed copyright line |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4b0aea09f4836c8056cb08fb8374e546 |
User & Date: | c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 on 2010-10-14 09:57:19.000 |
Other Links: | branch diff | manifest | tags |
Context
2010-11-03
| ||
12:37 | Do not return '-' for not matching urls. check-in: ddbf5288b9 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
2010-10-14
| ||
09:57 | added some indexes, fixed copyright line check-in: 4b0aea09f4 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
2010-08-30
| ||
08:32 | fixed field naming after database upgrade check-in: 8a8515f5c4 user: c.kworr@d4daf22a-8aaf-11de-a64d-234b64dd91b4 tags: master, trunk | |
Changes
Modified LICENSE
from [dd9467d8be]
to [47a7f30816].
|
| | < | 1 2 3 4 5 6 7 8 | Copyright (c) 2006-2010 Volodymyr Kostyrko <c.kworr@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
︙ | ︙ |
Modified database.sql
from [952aeefe4b]
to [44562e88d1].
︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | from_weekday smallint DEFAULT 0 NOT NULL, to_weekday smallint DEFAULT 6 NOT NULL, from_time time without time zone DEFAULT '00:00:00'::time without time zone NOT NULL, to_time time without time zone DEFAULT '23:59:59'::time without time zone NOT NULL, tag text[] NOT NULL ); -- table to hold tag - site links CREATE TABLE urls ( date_added timestamp without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL, site text[] NOT NULL, tag text[] NOT NULL, regexp text ); create unique index urls_rst on urls (regexp, usort(site), usort(tag)); -- rule to join all tables into one to simplify access -- automaticall uses current day and time data create view site_rule as select redirect_url, netmask, site, regexp from rules join urls | > > > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | from_weekday smallint DEFAULT 0 NOT NULL, to_weekday smallint DEFAULT 6 NOT NULL, from_time time without time zone DEFAULT '00:00:00'::time without time zone NOT NULL, to_time time without time zone DEFAULT '23:59:59'::time without time zone NOT NULL, tag text[] NOT NULL ); create index rules_tag_g on rules using gin (tag); -- table to hold tag - site links CREATE TABLE urls ( date_added timestamp without time zone DEFAULT ('now'::text)::timestamp(0) without time zone NOT NULL, site text[] NOT NULL, tag text[] NOT NULL, regexp text ); create index urls_tag_g on urls using gin (tag); create index urls_site_g on urls using gin (site); create unique index urls_rst on urls (regexp, usort(site), usort(tag)); -- rule to join all tables into one to simplify access -- automaticall uses current day and time data create view site_rule as select redirect_url, netmask, site, regexp from rules join urls |
︙ | ︙ |