PhoenixKit.Migrations.Postgres.V147 (phoenix_kit v1.7.202)

Copy Markdown View Source

V147: Persist geo-location on known devices.

Adds a nullable location column to phoenix_kit_user_known_devices. The "City, Country" string is already resolved at new-device time by PhoenixKit.Users.LoginAlerts (it was only used in the alert email); storing it lets the user's Active Sessions list show where each session signed in from without an extra geo lookup per page render.

Summary

Functions

down(opts)

up(opts)