Closed yesidpol closed 12 months ago
I can confirm that.
And having a geometry it does create the unique constraint.
INTERLIS 2.3;
MODEL ModelC (de) AT "http://github.com" VERSION "2022_10_25" =
IMPORTS GeometryCHLV95_V1;
TOPIC TheTopic =
CLASS TheClass =
aNumber: 0 .. 10;
UNIQUE aNumber;
END TheClass;
CLASS TheClassWithGeometry =
aNumber: 0 .. 10;
Geometrie: MANDATORY GeometryCHLV95_V1.Coord2;
UNIQUE aNumber;
END TheClassWithGeometry;
END TheTopic;
END ModelC.
(TheClassWithGeometry with CREATE UNIQUE INDEX theclasswithgeometry_anumber_key ON "theclasswithgeometry" USING btree ("anumber");
and TheClass withouth it)
Notiz für den Fix: Aktuelle werden die UNIQUE Indices nur generiert, sofern für das referenzierte Attribut auch ein zugewiesener epgsCode gefunden wird. Der Fehler passiert auf Zeile hier.
Unique constraints are not generated in the databases. I could identify that the version 3.12.3 was the last one that generated unique constraints.
I tested these versions:
The arguments that I used:
and the model