Strange DEFAULT NULL in PostgreSQL (and derived H2) database schema
Opened this issue · 0 comments
pavelhoral commented
I have came across strange DEFAULT NULL
declarations in PostgreSQL schema (and derived H2 schema) on columns, where NULL value really does not make sense. I would love this to be investigated a bit and potentially fixed...
Example (not sure NULL objecttype
would be a valid value):
CREATE TABLE openidm.objecttypes (
id BIGSERIAL NOT NULL,
objecttype VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT idx_objecttypes_objecttype UNIQUE (objecttype)
);
Refs: