Translate keywords (#277)

* Translate keywords

* Add constraint

* Rename 000.376.sql to 000.377.sql
This commit is contained in:
Niklas Fondberg
2022-06-07 12:33:11 +02:00
committed by GitHub
parent f539ad27cc
commit 27885458d1
+9
View File
@@ -0,0 +1,9 @@
-- Add translations for keywords
DROP TABLE IF EXISTS keywords_i18n;
CREATE TABLE IF NOT EXISTS keywords_i18n (
id serial PRIMARY KEY,
keyword_id integer NOT NULL REFERENCES keywords(id),
locale_id integer NOT NULL REFERENCES locales(id),
value text
);