Wrote migrations.sql
-- UP
CREATE TABLE "geodata_places" (
"id" integer NOT NULL,
"name" character varying(200) NOT NULL,
"longitude" double precision NOT NULL,
"latitude" double precision NOT NULL,
"countryCode" character(2) NOT NULL,
"admin1Code" character varying(20),
"admin2Code" character varying(80),
"modificationDate" date NOT NULL,
"admin1Name" character varying,
"admin2Name" character varying,
"alternateNames" character varying,
CONSTRAINT "geodata_places_pkey" PRIMARY KEY ("id")
); -- missing in target
CREATE INDEX "IDX_geodata_gist_earthcoord" ON "geodata_places" (ll_to_earth_public(latitude, longitude)); -- missing in target
CREATE INDEX "idx_geodata_places_name" ON "geodata_places" USING gin (f_unaccent("name") gin_trgm_ops); -- missing in target
CREATE INDEX "idx_geodata_places_admin2_name" ON "geodata_places" USING gin (f_unaccent("admin2Name") gin_trgm_ops); -- missing in target
CREATE INDEX "idx_geodata_places_admin1_name" ON "geodata_places" USING gin (f_unaccent("admin1Name") gin_trgm_ops); -- missing in target
CREATE INDEX "idx_geodata_places_alternate_names" ON "geodata_places" USING gin (f_unaccent("alternateNames") gin_trgm_ops); -- missing in target
CREATE TABLE "naturalearth_countries" (
"id" integer NOT NULL GENERATED ALWAYS AS IDENTITY,
"admin" character varying(50) NOT NULL,
"admin_a3" character varying(3) NOT NULL,
"type" character varying(50) NOT NULL,
"coordinates" polygon NOT NULL,
CONSTRAINT "naturalearth_countries_pkey" PRIMARY KEY ("id")
); -- missing in target