Tom Hughes
ac7bb003ec
Cleanup migrations
...
Cleanup our migrations, replacing as much of our custom code
and monkey patching with modern standard rails methods.
2015-01-11 12:53:01 +00:00
Tom Hughes
360333d37d
Modernise use of find and update_all in database migrations
2014-04-27 19:18:35 +01:00
Tom Hughes
3e99bbf5a9
Remove lib prefix from includes for ruby 1.9 compatibility
2012-01-05 20:33:19 +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
Tom Hughes
6785911619
Fix bogus casts - lat/lon are signed.
2009-05-08 08:10:28 +00:00
Andy Allan
4adeeb51ad
remove indexes before renaming tables (some dbs have database-level index namespaces) and unsigned is also a mysqlism
2008-11-09 19:30:22 +00:00
Andy Allan
fc9046ce6f
Moving AUTO_INCREMENTs to monkeypatching. Seems a bit hacky though
2008-11-08 16:47:02 +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
cb71c6d57f
Add migration for quadtiling of node tables.
2007-09-23 13:42:56 +00:00