camper/deploy/campsite_type_option_i18n.sql

23 lines
641 B
MySQL
Raw Permalink Normal View History

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