-- +goose Up -- Where a region's checkers stand, so the monitor form can show them on a -- map. Both coordinates are set or neither is. ALTER TABLE regions ADD COLUMN latitude double precision, ADD COLUMN longitude double precision, ADD CONSTRAINT regions_location_check CHECK ( (latitude IS NULL AND longitude IS NULL) OR (latitude BETWEEN -90 AND 90 AND longitude BETWEEN -180 AND 180) ); -- +goose Down ALTER TABLE regions DROP CONSTRAINT regions_location_check, DROP COLUMN latitude, DROP COLUMN longitude;