discourse/app
Dan Johnson 2e478d8537 TopicLinkClick: convert 'ip' (bigint) -> 'ip_address' (inet)
When accessed over IPv6, the ip address of the user is a 128-bit number,
too big for PostgreSQL's bigint data type. Since PostgresSQL has the
built-in inet type, which handles both IPv4 and IPv6 addresses, we
should use that instead. Where this is done elsewhere in the codebase,
the column is called ip_address, so we should follow that convention as
well.

This migration uses a SQL command to populate the new field from the old
one, so as not to rely on the TopicLinkClick model class, which should
keep the migration from failing if that class is modified in the future.
2013-06-25 19:41:19 -04:00
..
assets Change modal that asks which topic you want to reply in; upgrade bootbox.js 2013-06-24 15:01:07 -04:00
controllers Merge pull request #1059 from vipulnsward/fix_method_typo 2013-06-20 18:23:46 -07:00
helpers FIX: Again, try to get a flexible absolute logo_url 2013-06-05 18:23:43 -04:00
mailers Allow reply by email for admins in PMs 2013-06-18 17:26:33 -04:00
models TopicLinkClick: convert 'ip' (bigint) -> 'ip_address' (inet) 2013-06-25 19:41:19 -04:00
serializers remove dead uncalled code 2013-06-23 15:28:38 +10:00
services Make topics invisible when first post is automatically hidden because of spam flags 2013-06-12 16:02:11 -04:00
views Russian translation (actual version) 2013-06-24 15:55:44 +04:00