numerus/deploy/country_i18n.sql

22 lines
474 B
PL/PgSQL

-- Deploy numerus:country_i18n to pg
-- requires: schema_numerus
-- requires: country_code
-- requires: language
-- requires: country
begin;
set search_path to numerus, public;
create table country_i18n (
country_code country_code not null references country,
lang_tag text not null references language,
name text not null,
primary key (country_code, lang_tag)
);
grant select on table country_i18n to invoicer;
grant select on table country_i18n to admin;
commit;