numerus/deploy/currency_code.sql

15 lines
299 B
MySQL
Raw Normal View History

-- 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
2023-01-27 18:36:16 +00:00
'A correctly formatted, but not necessarily valid, ISO 4217 currency code';
commit;