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/17 12:56] – Luud | podoc:location_sql_table [2007/04/20 13:38] (current) – Luud | ||
---|---|---|---|
Line 11: | Line 11: | ||
=== Schema === | === Schema === | ||
- | < | + | < |
create table location ( -- location is the place the photo was taken | create table location ( -- location is the place the photo was taken | ||
identifier | identifier | ||
Line 18: | Line 18: | ||
country | country | ||
last_modified_date timestamp, | last_modified_date timestamp, | ||
- | | + | |
city varchar(300), | city varchar(300), | ||
latitude | latitude | ||
- | longitude | + | longitude |
+ | private | ||
); | ); | ||
- | < | + | </code> |
+ | |||
+ | === 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 === | ||
Line 30: | Line 41: | ||
=== Related indexes === | === Related indexes === | ||
+ | |||
+ | None. | ||
=== Related functions === | === Related functions === | ||
+ | |||
+ | * [[number_of_location_references sql function|number_of_location_references]] | ||
=== Related views === | === Related views === | ||
+ | |||
+ | * [[view_location sql view|view_location]] | ||
=== History === | === History === | ||
Line 49: | Line 66: | ||
= Version 2.5 = | = Version 2.5 = | ||
- | < | + | < |
create table location ( -- location is the place the photo was taken | create table location ( -- location is the place the photo was taken | ||
identifier | identifier | ||
Line 61: | Line 78: | ||
longitude | 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; | ||
</ | </ | ||
Line 67: | Line 94: | ||
= Version 2.31 = | = Version 2.31 = | ||
- | < | + | < |
-- Ensure referential integrity with the locations. | -- Ensure referential integrity with the locations. | ||
insert into location (identifier, | insert into location (identifier, | ||
</ | </ | ||
podoc/location_sql_table.1176814570.txt.gz · Last modified: 2007/04/17 12:56 by Luud