diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-13 09:48:27 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-08-09 17:03:48 +0100 |
commit | 46b9d8989d5ac2f8eedd196d11ceb4baf57728dd (patch) | |
tree | 05e9e12f03c1328515afc1174cf4061f81c903fc /db | |
parent | 4d18b5c100d0df1276f953b90fb3481391989376 (diff) |
Add translation table.
Diffstat (limited to 'db')
-rw-r--r-- | db/downgrade_0052---0051.sql | 5 | ||||
-rw-r--r-- | db/schema.sql | 10 | ||||
-rw-r--r-- | db/schema_0052-translation-table.sql | 13 |
3 files changed, 28 insertions, 0 deletions
diff --git a/db/downgrade_0052---0051.sql b/db/downgrade_0052---0051.sql new file mode 100644 index 000000000..715b4549f --- /dev/null +++ b/db/downgrade_0052---0051.sql @@ -0,0 +1,5 @@ +BEGIN; + +DROP TABLE translation; + +COMMIT; diff --git a/db/schema.sql b/db/schema.sql index d35071c0f..af6570b7a 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -528,3 +528,13 @@ CREATE TABLE contact_defect_types ( ALTER TABLE problem ADD COLUMN defect_type_id int REFERENCES defect_types(id); + +CREATE TABLE translation ( + id serial not null primary key, + tbl text not null, + object_id integer not null, + col text not null, + lang text not null, + msgstr text not null, + unique(tbl, object_id, col, lang) +); diff --git a/db/schema_0052-translation-table.sql b/db/schema_0052-translation-table.sql new file mode 100644 index 000000000..95df499cc --- /dev/null +++ b/db/schema_0052-translation-table.sql @@ -0,0 +1,13 @@ +BEGIN; + +CREATE TABLE translation ( + id serial not null primary key, + tbl text not null, + object_id integer not null, + col text not null, + lang text not null, + msgstr text not null, + unique(tbl, object_id, col, lang) +); + +COMMIT; |