Skip to content

Conversation

costasovo
Copy link
Contributor

@costasovo costasovo commented Jul 30, 2024

This PR addresses an issue where the ALTER TABLE CHANGE with skipped COLUMNS keyword was ignored.

-- Processed correctly
ALTER TABLE _tmp_table CHANGE COLUMN name firstname varchar(50) NOT NULL default 'mark';

-- Was ignored
ALTER TABLE _tmp_table CHANGE name firstname varchar(50) NOT NULL default 'mark';

This PR fixes the issue by adding support for optional COLUMN in the ALTER TABLE CHANGE query

@adamziel
Copy link
Collaborator

Looks great to me, thank you so much for your contribution @costasovo!

@adamziel adamziel merged commit 74c605c into WordPress:develop Jul 31, 2024
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