Geometry: Point: Fix index creation.

scenario-dev-pa
Pierre-Antoine 2026-09-04 11:29:02 +02:00
parent 2498466a51
commit b7c3793a66
1 changed files with 5 additions and 6 deletions

View File

@ -95,10 +95,9 @@ class PointXYZ(Point):
"ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE" "ADD COLUMN deleted BOOLEAN NOT NULL DEFAULT FALSE"
) )
if major == "0" and minor == "2": # Try to create index at each update
if int(release) < 5:
execute( execute(
"CREATE INDEX idx_point " + "CREATE INDEX IF NOT EXISTS idx_point " +
"ON geometry_pointXYZ(profile, scenario);" "ON geometry_pointXYZ(profile, scenario);"
) )