16 lines
304 B
MySQL
16 lines
304 B
MySQL
|
-- Deploy camper:country_code to pg
|
||
|
-- requires: schema_camper
|
||
|
|
||
|
begin;
|
||
|
|
||
|
set search_path to camper, public;
|
||
|
|
||
|
create domain country_code as text
|
||
|
check (value ~ '^[A-Z]{2}$');
|
||
|
;
|
||
|
|
||
|
comment on domain country_code is
|
||
|
'A correctly formated, but not necessarily valid, ISO 3166-1 alpha-2 country code.';
|
||
|
|
||
|
commit;
|