podoc:photo_version_sql_table
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
podoc:photo_version_sql_table [2007/04/19 09:11] – Luud | podoc:photo_version_sql_table [2007/10/19 20:02] – Luud | ||
---|---|---|---|
Line 11: | Line 11: | ||
=== Schema === | === Schema === | ||
- | < | + | < |
create table photo_version ( | create table photo_version ( | ||
identifier | identifier | ||
Line 17: | Line 17: | ||
photo | photo | ||
master | master | ||
- | small_image_path | ||
- | medium_image_path | ||
- | large_image_path | ||
date_of_creation | date_of_creation | ||
comment | comment | ||
original_image_name | original_image_name | ||
colorspace | colorspace | ||
- | orientation | + | orientation |
+ | date_changed | ||
); | ); | ||
</ | </ | ||
Line 34: | Line 32: | ||
=== Is referenced by other tables === | === Is referenced by other tables === | ||
+ | |||
+ | * [[photo_dupe sql table]](version) references identifier | ||
+ | * < | ||
=== Related sequences === | === Related sequences === | ||
Line 42: | Line 43: | ||
* [[photo_version_photo_idx sql index|photo_version_photo_idx]] | * [[photo_version_photo_idx sql index|photo_version_photo_idx]] | ||
+ | * [[photo_version_photo sql index|photo_version_photo]] | ||
=== Related functions === | === Related functions === | ||
Line 67: | Line 69: | ||
= Version 2.7 = | = Version 2.7 = | ||
- | < | + | < |
create table photo_version ( | create table photo_version ( | ||
identifier | identifier | ||
Line 83: | Line 85: | ||
= Version 2.13 = | = Version 2.13 = | ||
- | < | + | < |
alter table photo_version add column original_image_name varchar(500); | alter table photo_version add column original_image_name varchar(500); | ||
</ | </ | ||
Line 89: | Line 91: | ||
= Version 2.26 = | = Version 2.26 = | ||
- | < | + | < |
alter table photo_version add column colorspace integer; | alter table photo_version add column colorspace integer; | ||
update photo_version set colorspace = 1 where colorspace is null; | update photo_version set colorspace = 1 where colorspace is null; | ||
Line 97: | Line 99: | ||
update photo_version set orientation = 1 where orientation is null; | update photo_version set orientation = 1 where orientation is null; | ||
alter table photo_version alter orientation set not null; | alter table photo_version alter orientation set not null; | ||
+ | </ | ||
+ | |||
+ | = Version 2.34 = | ||
+ | |||
+ | <code sql> | ||
+ | alter table photo_version add date_changed timestamp without time zone; | ||
</ | </ | ||
Line 103: | Line 111: | ||
= Version 2.7 = | = Version 2.7 = | ||
- | < | + | < |
-- populate version control table | -- populate version control table | ||
insert into photo_version | insert into photo_version | ||
Line 111: | Line 119: | ||
= Version 2.13 = | = Version 2.13 = | ||
- | < | + | < |
update photo_version set original_image_name = ' | update photo_version set original_image_name = ' | ||
+ | </ | ||
+ | |||
+ | = Version 2.34 = | ||
+ | |||
+ | <code sql> | ||
+ | alter table photo_version drop small_image_path; | ||
+ | alter table photo_version drop medium_image_path; | ||
+ | alter table photo_version drop large_image_path; | ||
</ | </ | ||
podoc/photo_version_sql_table.txt · Last modified: 2007/10/19 20:02 by Luud