podoc:photo_dupe_sql_table
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
podoc:photo_dupe_sql_table [2007/04/19 08:23] – Luud | podoc:photo_dupe_sql_table [2007/10/31 15:38] (current) – Luud | ||
---|---|---|---|
Line 11: | Line 11: | ||
=== Schema === | === Schema === | ||
- | | + | <code sql> |
- | identifier | + | create table photo_dupe ( |
- | key | + | identifier |
- | photo | + | key |
- | date_of_creation | + | photo |
- | storage_location | + | date_of_creation |
- | storage_index | + | storage_location |
- | remark | + | storage_index |
- | ); | + | remark |
+ | | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | === References other tables === | ||
+ | |||
+ | * photo references [[photo sql table|photo]](identifier) | ||
+ | * version references [[photo_version sql table|photo_version]](identifier) | ||
+ | |||
+ | === Is referenced by other tables === | ||
+ | |||
+ | * < | ||
=== Related sequences === | === Related sequences === | ||
Line 27: | Line 39: | ||
=== Related indexes === | === Related indexes === | ||
- | None. | + | * [[photo_dupe_version_idx sql index|photo_dupe_version_idx]] |
=== Related functions === | === Related functions === | ||
Line 36: | Line 48: | ||
* [[view_photo sql view|view_photo]] | * [[view_photo sql view|view_photo]] | ||
- | * [[view_submission sql view|view_submission]] | + | * <del>[[view_submission sql view|view_submission]]</ |
=== History === | === History === | ||
Line 48: | Line 60: | ||
Still in use | Still in use | ||
- | == Change | + | == Schema change |
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | identifier | + | create table photo_dupe ( |
- | key | + | identifier |
- | photo | + | key |
- | date_of_creation | + | photo |
- | storage_location | + | date_of_creation |
- | storage_index | + | storage_location |
- | remark | + | storage_index |
- | ); | + | remark |
+ | ); | ||
+ | </ | ||
+ | |||
+ | = Version 2.34 = | ||
+ | |||
+ | <code sql> | ||
+ | -- Add ' | ||
+ | |||
+ | |||
+ | ALTER TABLE photo_dupe | ||
+ | | ||
+ | |||
+ | |||
+ | ALTER TABLE photo_dupe ALTER version SET NOT NULL; | ||
+ | </ | ||
+ | |||
+ | == Data change history = | ||
+ | |||
+ | = Version 2.34 = | ||
+ | |||
+ | <code sql> | ||
+ | UPDATE photo_dupe set version = | ||
+ | | ||
+ | WHERE photo_dupe.photo = v.photo AND v.master = ' | ||
+ | </ | ||
podoc/photo_dupe_sql_table.txt · Last modified: 2007/10/31 15:38 by Luud