32 lines
2.4 KiB
MySQL
32 lines
2.4 KiB
MySQL
|
-- Verify camper:available_booking_status on pg
|
||
|
|
||
|
begin;
|
||
|
|
||
|
set search_path to camper;
|
||
|
|
||
|
select 1 / count(*) from booking_status where booking_status = 'created' and name = 'Created';
|
||
|
select 1 / count(*) from booking_status where booking_status = 'cancelled' and name = 'Cancelled';
|
||
|
select 1 / count(*) from booking_status where booking_status = 'confirmed' and name = 'Confirmed';
|
||
|
select 1 / count(*) from booking_status where booking_status = 'checked-in' and name = 'Checked in';
|
||
|
select 1 / count(*) from booking_status where booking_status = 'invoiced' and name = 'Invoiced';
|
||
|
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'created' and lang_tag = 'ca' and name = 'Creada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'cancelled' and lang_tag = 'ca' and name = 'Cancel·lada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'confirmed' and lang_tag = 'ca' and name = 'Confirmada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'checked-in' and lang_tag = 'ca' and name = 'Registrada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'invoiced' and lang_tag = 'ca' and name = 'Facturada';
|
||
|
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'created' and lang_tag = 'es' and name = 'Creada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'cancelled' and lang_tag = 'es' and name = 'Cancelada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'confirmed' and lang_tag = 'es' and name = 'Confirmada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'checked-in' and lang_tag = 'es' and name = 'Registrada';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'invoiced' and lang_tag = 'es' and name = 'Facturada';
|
||
|
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'created' and lang_tag = 'fr' and name = 'Créé';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'cancelled' and lang_tag = 'fr' and name = 'Annulé';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'confirmed' and lang_tag = 'fr' and name = 'Confirmé';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'checked-in' and lang_tag = 'fr' and name = 'Enregistré';
|
||
|
select 1 / count(*) from booking_status_i18n where booking_status = 'invoiced' and lang_tag = 'fr' and name = 'Facturé';
|
||
|
|
||
|
rollback;
|