Skip to content

Fix PostgreSQL enum column padding - #425

Merged
jbrooksuk merged 4 commits into
mainfrom
agent/fix-postgres-enum-columns
Aug 9, 2026
Merged

Fix PostgreSQL enum column padding#425
jbrooksuk merged 4 commits into
mainfrom
agent/fix-postgres-enum-columns

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

Fixes PostgreSQL space padding on enum-backed CHAR columns while preserving CHAR for MySQL and SQLite.

  • Use VARCHAR for the affected PostgreSQL columns in fresh installs.
  • Convert existing PostgreSQL columns with an upgrade migration.
  • Cover the padded asc enum value in the component-group API resource.

Closes #423

Validation

  • vendor/bin/pint --dirty
  • vendor/bin/pest tests/Feature/Api/ComponentGroupTest.php tests/Feature/StatusPage/ComponentGroupOrderingTest.php (47 passed)

composer test:unit was attempted but could not complete due to the existing 128 MB memory limit in an unrelated migration worker.

@jbrooksuk
jbrooksuk merged commit cd7b467 into main Aug 9, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the agent/fix-postgres-enum-columns branch August 9, 2026 17:23
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.

CHAR columns break enum casts on PostgreSQL, causing 500 on group creation and on the status page

1 participant