From 62123e577ee5d4066d53f8ad7e5ac3d2eb190430 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 18 Nov 2026 20:24:52 +0100 Subject: Securized the queries in the database with a dedicated type for the Identifiers --- lib/query/tests/create.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/query/tests') diff --git a/lib/query/tests/create.t b/lib/query/tests/create.t index 6ba48c3..38a4630 100644 --- a/lib/query/tests/create.t +++ b/lib/query/tests/create.t @@ -69,7 +69,7 @@ A subcontent is linked to the parent: CREATE TABLE "details" ( "parent" INTEGER NOT NULL , "id" INTEGER PRIMARY KEY - , FOREIGN KEY("parent") REFERENCES entity("id") ) + , FOREIGN KEY("parent") REFERENCES "entity"("id") ) A reference field is declared as a foreign key to the linked element @@ -109,7 +109,7 @@ A reference field is declared as a foreign key to the linked element ( "id" INTEGER PRIMARY KEY , "user_type" INTEGER , "name" VARCHAR - , FOREIGN KEY("user_type") REFERENCES user_type_list("id") ) + , FOREIGN KEY("user_type") REFERENCES "user_type_list"("id") ) When the field is multivaluated, there is no column for this property in the table but a dedicated table is created: @@ -146,5 +146,6 @@ table but a dedicated table is created: ( "id" INTEGER PRIMARY KEY , "parent" INTEGER NOT NULL , "target" INTEGER NOT NULL - , FOREIGN KEY("parent") REFERENCES entity("id") - , FOREIGN KEY("target") REFERENCES user_type_list("id") ) + , FOREIGN KEY("parent") REFERENCES "entity"("id") + , FOREIGN KEY("target") REFERENCES "user_type_list"("id") ) + -- cgit v1.2.3