Skip to content

Nullable columns now output NULL DEFAULT NULL in DDL#141

Merged
simon-mundy merged 1 commit intophp-db:0.6.xfrom
simon-mundy:issue-140
Mar 24, 2026
Merged

Nullable columns now output NULL DEFAULT NULL in DDL#141
simon-mundy merged 1 commit intophp-db:0.6.xfrom
simon-mundy:issue-140

Conversation

@simon-mundy
Copy link
Member

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA yes
House Keeping no

When a column is nullable and no explicit default is set, the generated SQL now includes NULL DEFAULT NULL instead of omitting both keywords.

Fixes #140.

When a column is nullable and no explicit default is set, the generated
SQL now includes NULL DEFAULT NULL instead of omitting both keywords.
Fixes php-db#140.

Signed-off-by: Simon Mundy <simon.mundy@peptolab.com>
@simon-mundy simon-mundy added this to the 0.6.0 milestone Mar 24, 2026
@simon-mundy simon-mundy requested a review from tyrsson March 24, 2026 00:04
@simon-mundy simon-mundy self-assigned this Mar 24, 2026
@simon-mundy simon-mundy added bug Something isn't working confirmed Has been confirmed by maintainers labels Mar 24, 2026
@github-project-automation github-project-automation bot moved this from Todo to In Progress in @phpdb-mysql Mar 24, 2026
@simon-mundy simon-mundy merged commit e764dfe into php-db:0.6.x Mar 24, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in @phpdb-mysql Mar 24, 2026
@simon-mundy simon-mundy deleted the issue-140 branch March 24, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working confirmed Has been confirmed by maintainers

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

DDL create/alter does not provide DEFAULT NULL for nullable columns

2 participants