Andy Allan
479c1575e1
Remove tile_for_point SQL functions
...
This removes both the pl/pgsql version and the shared library version
of the `tile_for_point` SQL function. This function was only used in some
old migrations, and is not required for production usage.
Removing this function simplifies the installation and configuration for
new developers.
These SQL functions are separate from the `tile_for_point` ruby/C function
which is part of the quad_tile gem. This function is still used when
creating and updating database records.
Fixes #3110 .
2022-12-07 17:22:50 +00:00
Tom Hughes
eada36ff96
Switch to using the zeitwork autoloader
2020-12-30 20:30:21 +00:00
Tom Hughes
e6667b7ff5
Fix rubocop warnings
2019-11-27 11:47:16 +00:00
Andy Allan
d130db9fa8
Avoid more models in old migrations
...
Although these migrations run fine today, they could break in the future
if changes are made to the current model code.
2019-07-17 12:16:20 +02:00
Tom Hughes
b606acba0c
Use rails 4.2 defaults for older migrations
2019-04-24 11:14:05 +01:00
Tom Hughes
29a780eb1a
Add rails version number to migrations
2017-10-17 18:49:55 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
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
Thomas Wood
68ea927f5b
Merge r15175 from i18n_2 branch.
2009-05-26 22:33: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
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
9afb35449b
Change the gps_points table to store latitude and longitude values to
...
seven decimal places to given a worse case precision of about 1cm.
2007-09-18 23:29:47 +00:00
Tom Hughes
62dfa5ff45
Make the tile ID column unsigned as intended.
2007-09-18 23:06:40 +00:00
Tom Hughes
ebef7b8009
Add a migration to upgrade gps_points for quad tile support.
2007-09-12 17:59:48 +00:00