Go to file
jordi fita mas 92dba96b29 Add campsite_type_pet_cost relation to hold price of dogs in campsites
It is a separate relation, instead of having a field in campsite_type,
because not all campsite types allow dogs.  I could have added a new
field to campsite_type, but then its values it would be meaningless for
campsites that do not allow dogs, and a nullable field is not a valid
solution because NULL means “unknown”, but we **do** know the price —
none.

A separate relation encodes the same information without ambiguities nor
null values, and, in fact, removed the dogs_allowed field from
campsite_type to prevent erroneous status, such as a campsite type that
allows dogs without having a cost — even if the cost is zero, it has to
be added to the new relation.
2024-02-10 06:18:30 +01:00
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Tag database with v2 2024-01-29 02:52:52 +01:00
demo Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
deploy Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
pkg Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
po Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
revert Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
test Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
verify Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
web Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Add a controlled layer group for the zones on the map 2024-01-31 15:12:11 +01:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
guix.scm Add Guix package definition 2024-01-28 18:12:38 +01:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Add campsite_type_pet_cost relation to hold price of dogs in campsites 2024-02-10 06:18:30 +01:00