campingmontagut/deploy/home_i18n.sql
jordi fita mas e34f253620 Make the slogan user-editable and translatable
Because God forbid we have any performance; everything —**everything**—
must be user editable.
2024-01-23 11:52:39 +01:00

22 lines
483 B
PL/PgSQL

-- Deploy camper:home_i18n to pg
-- requires: roles
-- requires: schema_camper
-- requires: home
begin;
set search_path to camper, public;
create table home_i18n (
company_id integer not null references home,
lang_tag text not null references language,
slogan text not null,
primary key (company_id, lang_tag)
);
grant select on table home_i18n to guest;
grant select on table home_i18n to employee;
grant select, insert, update, delete on table home_i18n to admin;
commit;