Skip to content

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Dec 3, 2025

Summary

  • Removes empty/null collate option from column options in MigrationHelper::getColumnOption()
  • Fixes "collate is not a valid column option" error when running migrations on PostgreSQL

Fixes #974

@dereuromark dereuromark requested a review from markstory December 3, 2025 13:32
When baking migration diffs, the collate option was included in
column options even when null. This caused "collate is not a valid
column option" errors when running migrations on PostgreSQL.

Additionally, the collate to collation conversion was only done for
MySQL and SQL Server. This caused the same error for PostgreSQL and
SQLite columns with non-default collation.

Fixes #974
@dereuromark dereuromark force-pushed the fix-null-collate-option branch from 813ab71 to f563323 Compare December 3, 2025 13:48
@dereuromark dereuromark marked this pull request as ready for review December 3, 2025 13:49
@dereuromark dereuromark added the bug label Dec 3, 2025
@markstory markstory merged commit e6da2fe into 4.x Dec 3, 2025
13 checks passed
@markstory markstory deleted the fix-null-collate-option branch December 3, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migration_diff, "collate" is not a valid column option

3 participants