]> git.sesse.net Git - pr0n/blob - sql/upgrade-v2.50.sql
Document that we need HTML::TagCloud.
[pr0n] / sql / upgrade-v2.50.sql
1 --
2 -- Upgrades pre-v2.50 databases to 2.50 format -- not many changes, though.
3 --
4 SET work_mem=131072;
5
6 ALTER TABLE exif_info RENAME COLUMN tag TO key;
7 CREATE INDEX exif_info_key ON exif_info ( key );
8 CLUSTER exif_info_key ON exif_info;
9
10 CREATE TABLE tags (
11     image integer NOT NULL REFERENCES images (id) ON DELETE CASCADE,
12     tag varchar NOT NULL,
13
14     PRIMARY KEY ( image, tag )
15 );
16 CREATE INDEX tags_tag ON tags ( tag );
17
18 GRANT SELECT,INSERT,DELETE ON TABLE tags TO pr0n;