Skip to content

Set ConstraintAction if an added column was specified with an inline constraint#405

Merged
fulghum merged 1 commit intomainfrom
fulghum/add_column_with_constraint
Mar 20, 2025
Merged

Set ConstraintAction if an added column was specified with an inline constraint#405
fulghum merged 1 commit intomainfrom
fulghum/add_column_with_constraint

Conversation

@fulghum
Copy link
Copy Markdown

@fulghum fulghum commented Mar 20, 2025

Currently Dolt/GMS ignore an inline check constraint definition in an ALTER TABLE ... ADD COLUMN statement. This change detects if a constraint is present, and sets ConstraintAction so that GMS will add the constraint.

Copy link
Copy Markdown
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fulghum fulghum merged commit 0e77d54 into main Mar 20, 2025
4 checks passed
@fulghum fulghum deleted the fulghum/add_column_with_constraint branch March 20, 2025 23:18
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

Successfully merging this pull request may close these issues.

2 participants