Files
bit/db/migrations/20250316102350_add_country_to_clicks.sql
T
2025-03-16 11:26:20 +01:00

9 lines
316 B
SQL

-- +micrate Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE clicks ADD COLUMN country TEXT;
ALTER TABLE clicks RENAME COLUMN source TO referer;
-- +micrate Down
-- SQL section 'Down' is executed when this migration is rolled back
ALTER TABLE clicks RENAME COLUMN referer TO source;