Skip to content

refactor: normalize install schema snapshot formatting and nullable definitions#773

Open
anonymoususer72041 wants to merge 4 commits into
opencats:masterfrom
anonymoususer72041:refactor/clean-up-cats-schema
Open

refactor: normalize install schema snapshot formatting and nullable definitions#773
anonymoususer72041 wants to merge 4 commits into
opencats:masterfrom
anonymoususer72041:refactor/clean-up-cats-schema

Conversation

@anonymoususer72041
Copy link
Copy Markdown
Contributor

@anonymoususer72041 anonymoususer72041 commented May 5, 2026

This PR cleans up the install schema SQL definitions by normalizing the generated schema snapshot and aligning nullable column declarations between fresh installs and upgraded installations.

The schema snapshot in db/cats_schema.sql is updated to remove obsolete generator comments, use consistent SQL keyword and spacing style and omit redundant explicit DEFAULT NULL declarations for columns that are already nullable. These changes are intended to make the snapshot easier to read and compare without changing the effective nullable behavior of the affected columns.

The install upgrade path in modules/install/Schema.php is updated with matching ALTER TABLE ... MODIFY ... statements so existing installations converge on the same column definitions as fresh installs.

@anonymoususer72041 anonymoususer72041 changed the title refactor: normalize nullable column definitions in install schema refactor: normalize install schema snapshot formatting and nullable definitions May 6, 2026
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.

1 participant