#1577·atlas

使用 sql 源进行版本化迁移时,无法检测几何列

作者: Knorway创建于 2023年4月7日更新于 2026年9月29日

// FROM table "marker" { schema = schema.public column "id" { type = serial } // TO table "marker" { schema = schema.public column "id" { type = serial column "location" { type = sql("geometry(Point,4326)") } } output: ALTER TABLE "public"."marker" ADD COLUMN "location" geometry(point,4326) NOT NULL...

此外,在将 SQL 文件作为期望状态进行比较时,用于比较的开发数据库的行为非常意外,非常难以使用,而 HCL 期望状态则正常工作。