summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/icons/lang/fa.pngbin0 -> 312 bytes
-rw-r--r--lib/VNDB/Types.pm1
-rw-r--r--sql/schema.sql2
-rw-r--r--util/updates/2020-11-10-persian-language.sql1
4 files changed, 3 insertions, 1 deletions
diff --git a/data/icons/lang/fa.png b/data/icons/lang/fa.png
new file mode 100644
index 00000000..32aa1c44
--- /dev/null
+++ b/data/icons/lang/fa.png
Binary files differ
diff --git a/lib/VNDB/Types.pm b/lib/VNDB/Types.pm
index 1f8e5867..468e6fa1 100644
--- a/lib/VNDB/Types.pm
+++ b/lib/VNDB/Types.pm
@@ -26,6 +26,7 @@ hash LANGUAGE =>
en => 'English',
eo => 'Esperanto',
es => 'Spanish',
+ fa => 'Persian',
fi => 'Finnish',
fr => 'French',
gd => 'Scottish Gaelic',
diff --git a/sql/schema.sql b/sql/schema.sql
index 9ef7a2f2..1434b520 100644
--- a/sql/schema.sql
+++ b/sql/schema.sql
@@ -55,7 +55,7 @@ CREATE TYPE cup_size AS ENUM ('', 'AAA', 'AA', 'A', 'B', 'C', 'D', 'E',
CREATE TYPE dbentry_type AS ENUM ('v', 'r', 'p', 'c', 's', 'd');
CREATE TYPE edit_rettype AS (itemid integer, chid integer, rev integer);
CREATE TYPE gender AS ENUM ('unknown', 'm', 'f', 'b');
-CREATE TYPE language AS ENUM ('ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'eo', 'es', 'fi', 'fr', 'gd', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'mk', 'ms', 'lt', 'lv', 'nl', 'no', 'pl', 'pt-pt', 'pt-br', 'ro', 'ru', 'sk', 'sl', 'sv', 'ta', 'th', 'tr', 'uk', 'vi', 'zh');
+CREATE TYPE language AS ENUM ('ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'fr', 'gd', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'mk', 'ms', 'lt', 'lv', 'nl', 'no', 'pl', 'pt-pt', 'pt-br', 'ro', 'ru', 'sk', 'sl', 'sv', 'ta', 'th', 'tr', 'uk', 'vi', 'zh');
CREATE TYPE medium AS ENUM ('cd', 'dvd', 'gdr', 'blr', 'flp', 'mrt', 'mem', 'umd', 'nod', 'in', 'otc');
CREATE TYPE notification_ntype AS ENUM ('pm', 'dbdel', 'listdel', 'dbedit', 'announce', 'post', 'comment', 'subpost', 'subedit', 'subreview', 'subapply');
CREATE TYPE platform AS ENUM ('win', 'dos', 'lin', 'mac', 'ios', 'and', 'dvd', 'bdp', 'fmt', 'gba', 'gbc', 'msx', 'nds', 'nes', 'p88', 'p98', 'pce', 'pcf', 'psp', 'ps1', 'ps2', 'ps3', 'ps4', 'psv', 'drc', 'sat', 'sfc', 'swi', 'wii', 'wiu', 'n3d', 'x68', 'xb1', 'xb3', 'xbo', 'web', 'oth');
diff --git a/util/updates/2020-11-10-persian-language.sql b/util/updates/2020-11-10-persian-language.sql
new file mode 100644
index 00000000..29613381
--- /dev/null
+++ b/util/updates/2020-11-10-persian-language.sql
@@ -0,0 +1 @@
+ALTER TYPE language ADD VALUE 'fa' AFTER 'es';