Commit graph

213 commits

Author SHA1 Message Date
Tom Hughes
4708992f1c Don't bother creating the user index on user_roles as migration 48 will
create one on user+role that will do the same job.

Removing it here is a bit of a hack as it will not get dropped from
existing databases but as it was not given an explicit name it is hard
to write a migration to drop it.
2009-10-01 20:04:33 +00:00
Matt Amos
ca06b3c7b1 New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages. 2009-09-29 16:44:03 +00:00
Matt Amos
daa2496024 First version of blocking feature. Allows both time-based (for map protection) and notice-based (for education) blocks on users. Also introduces user roles and a simple UI for displaying and administering these. 2009-09-28 16:01:00 +00:00
Tom Hughes
7b632da44a Add xid_to_int4() function for Postgres. 2009-09-07 16:44:54 +00:00
Tom Hughes
73340e1780 Add support for reloading the language table. 2009-09-03 21:55:42 +00:00
Matt Amos
b34b898451 Added referer URL in user_token so that redirections (e.g: from oauth token requests) are followed after the user has confirmed the sign-up. Added test for the same. 2009-08-25 15:00:32 +00:00
Tom Hughes
908a6ef409 Merge 16891:17044 from trunk. 2009-08-13 17:18:08 +00:00
Tom Hughes
565171486f Add extra visibility options for GPS traces, and enhance the API call
that returns trace data to return more information if the owner of the
trace has allowed it. Based on a patch from Matt Amos.
2009-08-13 17:06:11 +00:00
Matt Amos
0d5be22cb5 Merging 16820:16891 from trunk. 2009-08-06 16:24:39 +00:00
Tom Hughes
63f61b5f04 Replace hard coded nwr enumeration support with a more generic
system for defining enumerations.
2009-08-04 13:23:36 +00:00
Tom Hughes
9c89bd53bf Require the migration helper code in some more migrations. 2009-08-04 13:17:29 +00:00
Tom Hughes
59eebc05b2 Merge 16817:16819 from trunk. 2009-08-03 23:59:17 +00:00
Tom Hughes
60303ee06b Fixed migration - rails uses remove_index not drop_index. 2009-08-03 23:55:51 +00:00
Tom Hughes
cbbfdf3948 Merge 16743:16811 from trunk. 2009-08-03 23:50:47 +00:00
Tom Hughes
72402ebc3e Add an index on message sender. 2009-08-03 23:04:41 +00:00
Matt Amos
6e146bfba9 Added foreign keys to some oauth tables. 2009-08-03 13:58:10 +00:00
Matt Amos
05e2120273 Merged 16488:16743 from trunk. 2009-07-31 10:42:06 +00:00
Tom Hughes
581c243e0e Allow messages to be deleted from the outbox as well as the inbox. 2009-07-23 17:41:50 +00:00
Tom Hughes
f3bf0c8b14 Add the ability for a recipient to (logically) delete a message from
their INBOX so they no longer see it.
2009-07-23 15:22:44 +00:00
Tom Hughes
f4571eeb7c Revert r16046.
DO NOT COMMIT MAJOR ENHANCEMENTS TO TRUNK WITHOUT TALKING TO ME FIRST.
2009-06-23 02:48:38 +00:00
Matt Amos
b8f6dbd403 Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests. 2009-06-22 16:54:37 +00:00
Štefan Baebler
1472a16516 documented some additional requirements when installing on a cleaner ubuntu box 2009-06-10 05:27:54 +00:00
Tom Hughes
bb1198fb61 Tweak migration to ensure that migrating from a database with existing
diary entries sets a default language for those entries.
2009-06-07 10:01:28 +00:00
Tom Hughes
51010abe83 More missing files from I18N merge. 2009-05-31 17:41:25 +00:00
Tom Hughes
11b1f7d739 Missing migrations from I18N merrge. 2009-05-31 17:29:49 +00:00
Tom Hughes
d0b845fc60 Merged I18N branch to head. 2009-05-31 17:26:41 +00:00
Tom Hughes
0e96027a20 Sort out storage and use of user preferred languages. 2009-05-31 14:55:45 +00:00
Tom Hughes
098e757cf2 Add a remove_foreign_key method and make migration 34 reversible. 2009-05-31 13:53:16 +00:00
Tom Hughes
3d906fe8c6 Merge 15165:15373 from trunk. 2009-05-31 11:32:32 +00:00
Tom Hughes
7c6d4e9076 Fix foreign key. 2009-05-30 17:01:43 +00:00
Tom Hughes
5b3b288fc2 Add a list of languages and fix a few issues with the schema. Also get
language selection for diary entries working.
2009-05-30 16:37:21 +00:00
Tom Hughes
9bc483ad98 Only use the db functions for migrations if USE_DB_FUNCTIONS is set
in the environment. This could possibly be revisited when we move to
rails 2.3 by using a nested transaction to try the function without
causing the surrounding transaction to abort.
2009-05-27 15:25:28 +00:00
Thomas Wood
68ea927f5b Merge r15175 from i18n_2 branch. 2009-05-26 22:33:28 +00:00
Tom Hughes
ded669bb4d Use a block to add the language record as rails seems to ignore any
attempt to set the primary key in the argument list of the create method.
2009-05-23 12:39:45 +00:00
Tom Hughes
0e71278320 Rename language_code to code - language_code is tautological when it's
in the language table anyway.
2009-05-23 00:00:25 +00:00
Thomas Wood
e3d4948daa Fix missing require in migrations. 2009-05-22 18:53:24 +00:00
Shaun McDonald
53b4d645d8 First stage of i18n. Some migrations and extra plugins. 2009-05-22 18:36:17 +00:00
Tom Hughes
ed68d524de Use a local lookup table for country bounding boxes rather than relying
on geonames.org being able to do it in a reasonable time.
2009-05-11 16:50:09 +00:00
Tom Hughes
f9fee045ac Add missing requires for the migration helper core. 2009-05-08 08:12:26 +00:00
Tom Hughes
6785911619 Fix bogus casts - lat/lon are signed. 2009-05-08 08:10:28 +00:00
Tom Hughes
55b1ba32e5 Add postgres implementation of tile_for_point function. 2009-05-08 08:01:33 +00:00
Tom Hughes
a0a6dd3619 Add yet more foreign keys. 2009-05-08 00:03:40 +00:00
Tom Hughes
3404fd5bbe Add foreign key constraints for users. 2009-05-07 17:54:52 +00:00
Tom Hughes
869da5e228 Add some extra indexes to the changesets table. 2009-04-20 14:54:05 +00:00
Tom Hughes
7c791f302c Add changeset indexes to nodes, ways and relations. 2009-04-20 13:39:20 +00:00
Tom Hughes
c4f937f099 Add a user index to the changeset table. 2009-04-20 13:31:57 +00:00
Tom Hughes
a4de927a28 Handle differences in interval constant formatting. 2009-04-16 20:47:18 +00:00
Shaun McDonald
90ec90f13d reverting last change, which included posgres config specific things 2009-04-13 00:10:37 +00:00
Shaun McDonald
2c52b06716 Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created. 2009-04-13 00:04:24 +00:00
Shaun McDonald
0f25285ab6 More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller. 2009-04-12 23:20:31 +00:00