Skip to content

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

@pavelhoral

Description

@pavelhoral

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions