diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-11-26 20:35:41 +1300 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-11-26 20:35:41 +1300 |
commit | 8d502c4b8e43ce510ec0fb1101e096ac7525b715 (patch) | |
tree | a8c9dabb059ea22cfbf57fd659eb1020e2d41c88 /db | |
parent | d50a813eb13c9b5ddc344c928201e40a7974ccff (diff) |
added missing columns from mysql upgrade script into pgsql script
Diffstat (limited to 'db')
-rw-r--r-- | db/08to09_pg.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index 7aaf3a7a0..233af82ef 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -60,3 +60,13 @@ CREATE index subscription_subscribed_idx ON subscription (subscribed,created); DROP index notice_profile_id_idx; CREATE index notice_profile_id_idx ON notice (profile_id,created,id); +ALTER TABLE notice ADD COLUMN lat decimal(10, 7) /* comment 'latitude'*/; +ALTER TABLE notice ADD COLUMN lon decimal(10,7) /* comment 'longitude'*/; +ALTER TABLE notice ADD COLUMN location_id integer /* comment 'location id if possible'*/ ; +ALTER TABLE notice ADD COLUMN location_ns integer /* comment 'namespace for location'*/; + +ALTER TABLE profile ADD COLUMN lat decimal(10,7) /*comment 'latitude'*/ ; +ALTER TABLE profile ADD COLUMN lon decimal(10,7) /*comment 'longitude'*/; +ALTER TABLE profile ADD COLUMN location_id integer /* comment 'location id if possible'*/; +ALTER TABLE profile ADD COLUMN location_ns integer /* comment 'namespace for location'*/; +
\ No newline at end of file |