feat: add Polish language support

This commit is contained in:
Rotimi Best
2025-08-08 04:53:38 +01:00
parent 0d0719e8f9
commit 279d10a914
7 changed files with 1561 additions and 35 deletions
@@ -0,0 +1,27 @@
drop view if exists "public"."lesson_versions";
alter table "public"."lesson_language" alter column "locale" drop default;
alter table "public"."profile" alter column "locale" drop default;
alter type "public"."LOCALE" rename to "LOCALE__old_version_to_be_dropped";
create type "public"."LOCALE" as enum ('en', 'hi', 'fr', 'pt', 'de', 'vi', 'ru', 'es', 'pl');
alter table "public"."lesson_language" alter column locale type "public"."LOCALE" using locale::text::"public"."LOCALE";
alter table "public"."profile" alter column locale type "public"."LOCALE" using locale::text::"public"."LOCALE";
alter table "public"."lesson_language" alter column "locale" set default 'en'::"LOCALE";
alter table "public"."profile" alter column "locale" set default 'en'::"LOCALE";
drop type "public"."LOCALE__old_version_to_be_dropped";
create or replace view "public"."lesson_versions" as SELECT llh.old_content,
llh.new_content,
llh."timestamp",
ll.locale,
ll.lesson_id
FROM (lesson_language_history llh
JOIN lesson_language ll ON ((ll.id = llh.lesson_language_id)));