Commit graph

116 commits

Author SHA1 Message Date
Tom Hughes
e7e5ae7aaa The current_way_nodes table is already an InnoDB table. 2008-05-04 14:50:53 +00:00
Gabriel Ebner
0499559f79 api06: Fix tag parsing in the node-tags-normalization helper, as suggested by
Jon Burgess.
2008-05-04 13:51:45 +00:00
Gabriel Ebner
db52fe6923 api06: Use 2-byte ints and check malloc return value. 2008-05-04 12:03:05 +00:00
Gabriel Ebner
2b596387d2 api06: Fix bounds check. 2008-05-04 11:50:12 +00:00
Gabriel Ebner
e0e5423fb9 api06: 013_populate_node_tags_and_remove_helper: Initialize memory. 2008-05-04 11:44:36 +00:00
Frederik Ramm
7b2c9cd774 buffer overrun fix 2008-05-04 11:43:04 +00:00
Tom Hughes
ead1817e11 Add timestamp indexes to current_ways and current_relations. 2008-05-04 11:33:09 +00:00
Tom Hughes
cf304fe60f Merge 7649:7673 from trunk. 2008-05-04 11:26:36 +00:00
Tom Hughes
02efd7ba4a Go back to using user_id+k as the primary key for user preferences but
actually using the composite primary key extension this time so that it
really works.

Also stop update_one tring to render a non-existent view, and add a
delete_one method to allow preferences to be deleted.
2008-05-04 11:18:38 +00:00
Gabriel Ebner
adcaeeb90b api06: Move add-changeset migr. to no. 16. 2008-05-04 10:47:39 +00:00
Gabriel Ebner
5ed2cbce02 api06: Merge changesets code from Frederik. 2008-05-04 10:45:47 +00:00
Frederik Ramm
8c5638d696 initial changeset support 2008-05-04 10:41:42 +00:00
Tom Hughes
921518274f When adding new primary keys, drop the old indexes which are no longer
needed as they are a prefix of the new primary key.
2008-05-04 10:35:59 +00:00
Gabriel Ebner
9274a6010a api06: Fix the version-numbers-on-current-tables migration: We want the rows
in the current table to have the same version number as the latest one in the
history table (the latest version is kept in both the current and the history
tables.)
2008-05-04 10:04:07 +00:00
Gabriel Ebner
4424cd5b94 split_node_tags: Merge changes in main branch up to r7649. 2008-05-04 08:31:39 +00:00
Gabriel Ebner
ba01b66242 split_node_tags: Implement key constraints. 2008-05-04 08:25:29 +00:00
Gabriel Ebner
71e390bf31 split_node_tags: Forgot to migrate current_way_tags to InnoDB. 2008-05-03 16:40:51 +00:00
Gabriel Ebner
6ae23bed90 split_node_tags:
- Use InnoDB.
  - Put version column on the current_* tables.
  - Use transactions (untested).
2008-05-03 16:27:49 +00:00
Gabriel Ebner
e15fa25639 rails_port: fix migration to create a primary key with auto increment (don't
know if that will actually generate valid keys if there is already data in the
table.)
2008-05-03 14:56:43 +00:00
Steve Coast
a6b8346c18 fix migration to remove original stupid index hopefully 2008-05-03 14:45:15 +00:00
Gabriel Ebner
4db3faa68c split_node_tags: New migration (in C). 2008-05-03 14:32:30 +00:00
Gabriel Ebner
7eb181999d split_node_tags: Merge changes from main branch. 2008-05-03 14:11:23 +00:00
Steve Coast
4b3c207a81 add individual user preference read/write, and default all new users to having public data 2008-05-03 12:57:48 +00:00
Tom Hughes
453149e428 Make a copy of the rails code for the node tag splitting project, and remove
the associated migrations from the other branches.
2008-04-07 23:09:56 +00:00
Tom Hughes
72e30a3955 Restore add_user_image migration. 2008-02-23 16:01:12 +00:00
Tom Hughes
659b1a30c6 Remove image migration as it isn't needed. 2008-02-23 15:41:52 +00:00
Steve Coast
cacf1879c3 user images 2008-02-23 15:18:59 +00:00
Steve Coast
e13337354d preference stuff 2008-02-23 11:12:42 +00:00
Steve Coast
e3bd648182 move migrations around 2008-02-23 10:51:33 +00:00
Nick Black
5692b8f341 commented out migration which deletes the ways column nodes 2008-01-24 11:24:32 +00:00
Nick Black
1613799be4 fixes syntax error 2008-01-24 11:09:06 +00:00
Tom Hughes
602b7b6d3f - Add missing null constraints.
- Drop pointless index on current_node_tags and order primary key correctly.
- Make version column of node history table auto increment.
2008-01-23 19:25:37 +00:00
Nick Black
de93fe7707 created a temporary old nodes table to add version 2008-01-23 17:47:14 +00:00
Nick Black
84f3271091 removed unneeded migrations 015 and 014 2008-01-23 17:36:01 +00:00
Nick Black
4edd6d6fe9 migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm 2008-01-23 17:31:51 +00:00
Nick Black
8d2a4ee67a added migration to add a primary key on nodes id and version - should be run after rake db:node_version 2008-01-23 17:10:16 +00:00
Nick Black
c5f33db61e adds two migrations to create old_node_tags and node_tags table and indexes. Does not change existing table structure or populate tables with any data 2008-01-23 11:41:56 +00:00
Xin Zheng
681e96bc7d added mac os x instructions for db function creation 2008-01-21 17:43:56 +00:00
Tom Hughes
8181cb4bf7 Add support for commenting on, and replying to, diary entries. 2008-01-17 23:12:25 +00:00
Tom Hughes
38b7137fe3 Add migration to add an index on node_id to way_nodes. This index was added
to the live database a month or so back to support rollback in Potlatch.
2008-01-07 00:30:44 +00:00
Tom Hughes
250466e58e Add a maptile_for_point() function for MySQL to work out which slippy
map tile a given point lies in.
2007-10-09 22:59:32 +00:00
Richard Fairhurst
09ccace450 OS X-compatible makefile supplied by agnat 2007-10-07 11:15:09 +00:00
Gabriel Ebner
5506b2d959 rails_port_0.5: Merge rails_port. 2007-10-04 14:52:09 +00:00
Tom Hughes
05ce43138f Correct instructions for creating the database to ensure that the
default character set is specified correctly.
2007-10-04 10:26:30 +00:00
Gabriel Ebner
26fb51c86e rails_port_0.5: Merge rails_port. 2007-09-29 17:44:17 +00:00
Tom Hughes
61dd59712e Rescale GPS points correctly when downgrading from v5 to v4. 2007-09-28 23:33:32 +00:00
Tom Hughes
e7d834625c Fall back to a pure ruby update implementation if the tile_for_point
function is not present in MySQL.
2007-09-28 23:18:13 +00:00
Tom Hughes
05602fc9d7 Fall back to adding tile numbers the hard way if the MySQL function is
not available.
2007-09-28 18:32:11 +00:00
Tom Hughes
dd9ad16303 Document installation of database functions on MacOS X. 2007-09-28 14:57:31 +00:00
Frederik Ramm
4bbe59a0c4 added tagging of two-node ways created from tagged or unwayed segments. untested. 2007-09-26 09:54:49 +00:00