numerus/deploy/invoice_status_i18n.sql

21 lines
486 B
PL/PgSQL

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