17 lines
391 B
MySQL
17 lines
391 B
MySQL
|
-- Verify camper:season_calendar_season_id_fkey on pg
|
||
|
|
||
|
begin;
|
||
|
|
||
|
select 1/count(*)
|
||
|
from information_schema.constraint_column_usage
|
||
|
where table_catalog = 'camper'
|
||
|
and table_schema = 'camper'
|
||
|
and table_name = 'season'
|
||
|
and column_name = 'season_id'
|
||
|
and constraint_catalog = 'camper'
|
||
|
and constraint_schema = 'camper'
|
||
|
and constraint_name = 'season_calendar_season_id_fkey'
|
||
|
;
|
||
|
|
||
|
rollback;
|