Remove campsite_type’s booking_terms and rules

We are no longer going to “stitch up” a whole page based on ACF-like
field, but write the whole page with that information in description.

That change is due to wanting to serve the public-facing part of the web
with the same application.
This commit is contained in:
jordi fita mas 2023-08-04 19:50:27 +02:00
parent 0d2812acc5
commit 3994d77a78
3 changed files with 1 additions and 17 deletions

View File

@ -13,8 +13,6 @@ create table campsite_type (
slug uuid not null unique default gen_random_uuid(),
name text not null constraint name_not_empty check(length(trim(name)) > 0),
description xml not null default ''::xml,
rules xml not null default '',
booking_terms xml not null default '',
active boolean not null default true
);

View File

@ -5,7 +5,7 @@ reset client_min_messages;
begin;
select plan(55);
select plan(47);
set search_path to camper, public;
@ -54,18 +54,6 @@ select col_not_null('campsite_type', 'description');
select col_has_default('campsite_type', 'description');
--select col_default_is('campsite_type', 'description', '');
select has_column('campsite_type', 'rules');
select col_type_is('campsite_type', 'rules', 'xml');
select col_not_null('campsite_type', 'rules');
select col_has_default('campsite_type', 'rules');
--select col_default_is('campsite_type', 'rules', '');
select has_column('campsite_type', 'booking_terms');
select col_type_is('campsite_type', 'booking_terms', 'xml');
select col_not_null('campsite_type', 'booking_terms');
select col_has_default('campsite_type', 'booking_terms');
--select col_default_is('campsite_type', 'booking_terms', '');
select has_column('campsite_type', 'active');
select col_type_is('campsite_type', 'active', 'boolean');
select col_not_null('campsite_type', 'active');

View File

@ -7,8 +7,6 @@ select campsite_type_id
, slug
, name
, description
, rules
, booking_terms
, active
from camper.campsite_type
where false;