album/migrations/2018-09-05-065252_places_osm/up.sql
Rasmus Kaj 0482c46b5a Changed some number types, make the migration last.
And some rustfmt updates.
2018-09-05 14:20:43 +02:00

7 lines
217 B
SQL

-- Add fields for OpenStreetMap-based locations to places table.
ALTER TABLE places ADD COLUMN osm_id BIGINT UNIQUE;
ALTER TABLE places ADD COLUMN osm_level SMALLINT;
CREATE INDEX places_osm_idx ON places (osm_id);