camper/deploy/surroundings_highlight_i18n.sql
jordi fita mas a0f9c10193 Add management of surroundings’ highlights (points of interest)
Customer does not want the new “masonry-like” design of the surroundings
page, and wants the same style they already had: a regular list with
text and photo, alternating the photo’s side.

And, of course, they want to be able to add and edit them themselves. It
is like another carousel, but with an additional rich-text description.

The photos that we had in that page are no longer of use.
2024-01-16 01:26:35 +01:00

24 lines
686 B
PL/PgSQL

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