23 lines
596 B
PL/PgSQL
23 lines
596 B
PL/PgSQL
-- Deploy camper:campsite_feature_i18n to pg
|
|
-- requires: roles
|
|
-- requires: schema_camper
|
|
-- requires: campsite_feature
|
|
-- requires: language
|
|
|
|
begin;
|
|
|
|
set search_path to camper, public;
|
|
|
|
create table campsite_feature_i18n (
|
|
campsite_feature_id integer not null references campsite_feature,
|
|
lang_tag text not null references language,
|
|
name text,
|
|
primary key (campsite_feature_id, lang_tag)
|
|
);
|
|
|
|
grant select on table campsite_feature_i18n to guest;
|
|
grant select on table campsite_feature_i18n to employee;
|
|
grant select, insert, update, delete on table campsite_feature_i18n to admin;
|
|
|
|
commit;
|