podoc:location_sql_table
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
podoc:location_sql_table [2007/04/12 12:14] – Luud | podoc:location_sql_table [2007/04/20 13:38] (current) – Luud | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Database Table Description ===== | + | ===== Database Table Description |
=== Name === | === Name === | ||
+ | |||
+ | location | ||
=== Description === | === Description === | ||
Line 8: | Line 10: | ||
=== Schema === | === Schema === | ||
+ | |||
+ | <code sql> | ||
+ | create table location ( -- location is the place the photo was taken | ||
+ | identifier | ||
+ | place | ||
+ | state | ||
+ | country | ||
+ | last_modified_date timestamp, | ||
+ | users | ||
+ | city varchar(300), | ||
+ | latitude | ||
+ | longitude | ||
+ | private | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | === References tables === | ||
+ | |||
+ | * country references [[country sql table|country]](identifier) | ||
+ | * state references [[state sql table|state]](identifier) | ||
+ | * users references [[users sql table|users]](identifier) | ||
+ | |||
+ | === Is referenced by tables === | ||
+ | |||
+ | * [[photo sql table|photo]](location) references identifier | ||
=== Related sequences === | === Related sequences === | ||
+ | |||
+ | * [[location_id_sequence sql sequence|location_id_sequence]] | ||
=== Related indexes === | === Related indexes === | ||
+ | |||
+ | None. | ||
=== Related functions === | === Related functions === | ||
+ | |||
+ | * [[number_of_location_references sql function|number_of_location_references]] | ||
+ | |||
+ | === Related views === | ||
+ | |||
+ | * [[view_location sql view|view_location]] | ||
=== History === | === History === | ||
Line 25: | Line 62: | ||
Still in use | Still in use | ||
- | == Change | + | == Schema change |
= Version 2.5 = | = Version 2.5 = | ||
- | | + | <code sql> |
- | ... | + | create table location |
- | ); | + | |
+ | place | ||
+ | state | ||
+ | country | ||
+ | last_modified_date timestamp, | ||
+ | last_modifying_users | ||
+ | city varchar(300), | ||
+ | latitude | ||
+ | longitude | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | = Version 2.33 = | ||
+ | |||
+ | <code sql> | ||
+ | alter table location rename last_modifying_users to users; | ||
+ | |||
+ | alter table location add private boolean; | ||
+ | update location set private=' | ||
+ | alter table location alter private set not null; | ||
+ | </ | ||
+ | |||
+ | == Data change history == | ||
+ | |||
+ | = Version 2.31 = | ||
+ | |||
+ | <code sql> | ||
+ | -- Ensure referential integrity with the locations. | ||
+ | insert into location (identifier, | ||
+ | </ |
podoc/location_sql_table.1176380049.txt.gz · Last modified: 2007/04/12 12:14 by Luud