Change Serials to UUIDs, fix translation table
Languages now refer to other languages they are translated to through an additional table rather than an array of identifiers. This ensures no orphan identifier remains when a language is deleted. The primary key of languages is now a unique identifier rather than the name of the language itself. It now allows for multiple languages to have the same name. Their unique identifier is now a v4 UUID. Set Diesel to specific version 2.0.2, since 2.0 apparently does not mean the latest version of 2.0.z and 2.0 has issues with its uuid feature. Cleanup and simplify some code. Some more GraphQL documentation on available queries.
This commit is contained in:
@@ -9,8 +9,8 @@ CREATE TABLE Words (
|
||||
REFERENCES Words(norm)
|
||||
ON UPDATE CASCADE
|
||||
ON DELETE SET NULL,
|
||||
language VARCHAR(255)
|
||||
REFERENCES Languages(name)
|
||||
language UUID
|
||||
REFERENCES Languages(id)
|
||||
ON UPDATE CASCADE
|
||||
ON DELETE CASCADE
|
||||
NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user