Add pet icon

This commit is contained in:
jordi fita mas 2024-01-24 01:01:22 +01:00
parent 0a2911749a
commit 7e85270566
7 changed files with 89 additions and 2 deletions

View File

@ -20,6 +20,7 @@ values ('area')
, ('nopet')
, ('outing')
, ('person')
, ('pet')
, ('plot')
, ('pool')
, ('puzzle')
@ -32,6 +33,7 @@ values ('area')
, ('washer')
, ('wheelchair')
, ('wifi')
on conflict (icon_name) do nothing
;
commit;

View File

@ -0,0 +1,37 @@
-- Deploy camper:available_icons to pg
-- requires: schema_camper
-- requires: icon
begin;
insert into camper.icon (icon_name)
values ('area')
, ('baby')
, ('ball')
, ('bicycle')
, ('campfire')
, ('castle')
, ('ecofriendly')
, ('electricity')
, ('fridge')
, ('hvac')
, ('information')
, ('kayak')
, ('nopet')
, ('outing')
, ('person')
, ('plot')
, ('pool')
, ('puzzle')
, ('restaurant')
, ('route')
, ('rv')
, ('shower')
, ('store')
, ('toilet')
, ('washer')
, ('wheelchair')
, ('wifi')
;
commit;

View File

@ -1,7 +1,11 @@
-- Revert camper:available_icons from pg
-- Deploy camper:available_icons to pg
-- requires: schema_camper
-- requires: icon
begin;
delete from camper.icon;
delete from camper.icon
where icon_name = 'pet'
;
commit;

View File

@ -0,0 +1,7 @@
-- Revert camper:available_icons from pg
begin;
delete from camper.icon;
commit;

View File

@ -177,3 +177,4 @@ setup_surroundings_ad [roles schema_camper surroundings_ad] 2024-01-23T11:32:26Z
surroundings_ad_i18n [roles schema_camper surroundings_ad language] 2024-01-23T11:44:44Z jordi fita mas <jordi@tandem.blog> # Add relation for the translation of the surrounding ad
remove_surroundings_ad [roles schema_camper surroundings_ad surroundings_ad_i18n] 2024-01-23T11:41:47Z jordi fita mas <jordi@tandem.blog> # Add function to remove surroundings ad
translate_surroundings_ad [roles schema_camper surroundings_ad_i18n] 2024-01-23T12:06:32Z jordi fita mas <jordi@tandem.blog> # Add function to translate surroundings ad
available_icons [available_icons@v1] 2024-01-23T23:56:34Z jordi fita mas <jordi@tandem.blog> # Add pet icon

View File

@ -19,6 +19,7 @@ select 1 / count(*) from icon where icon_name = 'kayak';
select 1 / count(*) from icon where icon_name = 'nopet';
select 1 / count(*) from icon where icon_name = 'outing';
select 1 / count(*) from icon where icon_name = 'person';
select 1 / count(*) from icon where icon_name = 'pet';
select 1 / count(*) from icon where icon_name = 'plot';
select 1 / count(*) from icon where icon_name = 'pool';
select 1 / count(*) from icon where icon_name = 'puzzle';

View File

@ -0,0 +1,35 @@
-- Verify camper:available_icons on pg
begin;
set search_path to camper;
select 1 / count(*) from icon where icon_name = 'area';
select 1 / count(*) from icon where icon_name = 'baby';
select 1 / count(*) from icon where icon_name = 'ball';
select 1 / count(*) from icon where icon_name = 'bicycle';
select 1 / count(*) from icon where icon_name = 'campfire';
select 1 / count(*) from icon where icon_name = 'castle';
select 1 / count(*) from icon where icon_name = 'ecofriendly';
select 1 / count(*) from icon where icon_name = 'electricity';
select 1 / count(*) from icon where icon_name = 'fridge';
select 1 / count(*) from icon where icon_name = 'hvac';
select 1 / count(*) from icon where icon_name = 'information';
select 1 / count(*) from icon where icon_name = 'kayak';
select 1 / count(*) from icon where icon_name = 'nopet';
select 1 / count(*) from icon where icon_name = 'outing';
select 1 / count(*) from icon where icon_name = 'person';
select 1 / count(*) from icon where icon_name = 'plot';
select 1 / count(*) from icon where icon_name = 'pool';
select 1 / count(*) from icon where icon_name = 'puzzle';
select 1 / count(*) from icon where icon_name = 'restaurant';
select 1 / count(*) from icon where icon_name = 'route';
select 1 / count(*) from icon where icon_name = 'rv';
select 1 / count(*) from icon where icon_name = 'shower';
select 1 / count(*) from icon where icon_name = 'store';
select 1 / count(*) from icon where icon_name = 'toilet';
select 1 / count(*) from icon where icon_name = 'washer';
select 1 / count(*) from icon where icon_name = 'wheelchair';
select 1 / count(*) from icon where icon_name = 'wifi';
rollback;