#1825·atlas

Generating migrations, even though there are no changes to the schema field

Author: ysaakprCreated Jul 6, 2023Updated Sep 29, 2026

With the following schema , I keep getting schema migrations for the location column

field.Other("location", &types.GeoPoint{}).SchemaType(types.GeoPoint{}.SchemaType()),
func (GeoPoint) SchemaType() map[string]string {
	return map[string]string{
		dialect.MySQL:    "POINT",
		dialect.Postgres: "geometry(Point, 4326)",
	}
}
ALTER TABLE "tablename" ALTER COLUMN "location" TYPE geometry(point, 4326);

@masseelch This is keep happening every time run the migration