camper/deploy/currency_code.sql

16 lines
300 B
PL/PgSQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Deploy camper:currency_code to pg
-- requires: schema_camper
begin;
set search_path to camper, public;
create domain currency_code as text
check (value ~ '^[A-Z]{3}$');
;
comment on domain currency_code is
'A correctly formatted, but not necessarily valid, ISO 4217 currency code.';
commit;