This is easier to read and requires less unit tests, but i only used them in the new relations and fields for HEAD, because i do not see any point on creating migrations just for that.
15 lines
278 B
PL/PgSQL
15 lines
278 B
PL/PgSQL
-- Deploy camper:nonnegative_integer to pg
|
|
-- requires: schema_camper
|
|
|
|
begin;
|
|
|
|
set search_path to camper, public;
|
|
|
|
create domain nonnegative_integer as integer
|
|
check (value >= 0)
|
|
;
|
|
|
|
comment on domain nonnegative_integer is 'an integer that is either zero or positive';
|
|
|
|
commit;
|