diff options
Diffstat (limited to 'lib/query/tests')
| -rw-r--r-- | lib/query/tests/create.t | 9 |
1 files changed, 5 insertions, 4 deletions
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") ) + |
