Conversation
Signed-off-by: minleejae <mmj9808@gmail.com>
minleejae
force-pushed
the
feat/postgresql-not-null-constraint
branch
from
September 22, 2026 09:38
8a65a9d to
bd78bc5
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In POSTGRESQL mode, support PostgreSQL 18 table constraints such as
ALTER TABLE t ADD CONSTRAINT nn NOT NULL id NOT VALIDandCREATE TABLE t (id INT, CONSTRAINT nn NOT NULL id), including unnamed constraints and NO INHERIT.Expose a
NotNullConstraintwith an editable targetColumn, optional constraint name, inheritance flag and existingConstraintAttributesvalidation flag. AddIndex.Kind.NOT_NULL; wire the column through table traversal, expression deparsers and validation, and distinguish the newly declared constraint from an index. Includes construction/mutation, custom deparsing, metadata validation, legacy column nullability and round-trip tests plus usage documentation.Validation: full Gradle
checkon Java 17; original and rendered DDL executed on PostgreSQL 18 for ALTER and CREATE forms, including quoted identifiers, NO INHERIT and combined ALTER actions. Verified the named ALTER constraint is recorded ascontype=n,convalidated=false.Syntax references: https://www.postgresql.org/docs/18/sql-createtable.html and https://www.postgresql.org/docs/18/sql-altertable.html