-- Deploy numerus:currency_code to pg
-- requires: schema_numerus

begin;

set search_path to numerus, public;

create domain currency_code as text
check (value ~ '^[A-Z]{3}$');

comment on domain currency_code is
'A correctly formated, but not necessarily valid, ISO 4217 currency code';

commit;
