Commit graph

139 commits

Author SHA1 Message Date
Andy Allan
061d777266 Boolean correctness in migrations 2008-11-08 15:01:14 +00:00
Andy Allan
204fa87064 move bigint_pk id column into table def, no need to be an add_column 2008-11-08 12:30:42 +00:00
Shaun McDonald
fb627873c2 fixing one cmd that was missed in the resync 2008-11-08 12:16:42 +00:00
Shaun McDonald
bf29550db8 Resyncing from head 10895:11795 2008-11-08 11:52:58 +00:00
Andy Allan
e598ee220f Change bigint id column to monkeypatching-friendly syntax 2008-11-08 11:01:39 +00:00
Shaun McDonald
748a7a0a03 fix the indentation only 2008-11-07 15:08:43 +00:00
Shaun McDonald
6855b2604c Doing the update version part of the migration in chunks of 10000 instead of all at once so that MySQL doesn't choke with running out of table locks. 2008-11-06 17:15:22 +00:00
Shaun McDonald
ee1da78649 Fixing the migration so that it will better match the live databetter. 2008-11-05 18:42:38 +00:00
Shaun McDonald
0ca779e5bd Minor fix (integer => bigint) to one of the migrations so that they will run fully again. 2008-11-04 13:54:45 +00:00
Shaun McDonald
136c5a7bf1 Fixing the error messages 2008-10-22 09:40:16 +00:00
Tom Hughes
2ccbc55236 Log the IP address used to create an account. 2008-10-12 23:20:28 +00:00
Shaun McDonald
328d47e506 Fixing a bug in my foreign keys. I can now upload and download nodes and ways using JOSM in the new API. 2008-10-03 17:09:58 +00:00
Shaun McDonald
d19076d0ed wrong foreign key command in the migration 2008-09-30 15:52:54 +00:00
Shaun McDonald
7252ffa820 wrong foreign key command in the migration 2008-09-30 15:44:55 +00:00
Shaun McDonald
d7289a06de using the wrong field name in one of the migrations 2008-09-30 15:24:25 +00:00
Shaun McDonald
20022e457f changing the changesets migrations, so that the user id is now the changeset id for the nodes/ways/relations 2008-09-30 14:29:44 +00:00
Shaun McDonald
629843b96b Minor fix for the migration that was moved 2008-09-25 15:57:59 +00:00
Shaun McDonald
d9e070e069 Doing a resync from mainline 8633:10895. There was one simple to resolve conflict on app/models/node.rb. Also moving the migrations for API0.6 to new sequence numbers since there was some new migrations added to mainline, where the migration numbers would conflict if not moved. 2008-09-25 15:06:05 +00:00
Tom Hughes
3c85b2ceea Fix migration. 2008-08-24 16:56:34 +00:00
Tom Hughes
34189cf761 Add basic support for logically deleting a user. 2008-08-24 16:53:42 +00:00
Tom Hughes
64ecd02f0b Allow users to change their email address. Closes #546. 2008-08-13 11:39:33 +00:00
Tom Hughes
f8367c3ee1 Allow a user's email address to be marked invalid, and suppress most
notification mails for such users.
2008-08-13 10:45:49 +00:00
Tom Hughes
e379287e84 Add an administrator flag to the user table. 2008-08-13 08:12:09 +00:00
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