Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange DEFAULT NULL in PostgreSQL (and derived H2) database schema #165

Open
pavelhoral opened this issue Jan 24, 2024 · 0 comments
Open

Comments

@pavelhoral
Copy link
Member

pavelhoral commented Jan 24, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant