Skip to content

feat: reorder activity data item columns#781

Open
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:fix/activity-data-item-column-order
Open

feat: reorder activity data item columns#781
anonymoususer72041 wants to merge 2 commits into
opencats:masterfrom
anonymoususer72041:fix/activity-data-item-column-order

Conversation

@anonymoususer72041
Copy link
Copy Markdown
Contributor

This PR reorders the activity table columns so that data_item_type appears before data_item_id.

The previous physical column order placed data_item_id before data_item_type, even though the ID is interpreted in the context of the type. The existing IDX_type_id index already uses the more logical order of data_item_type, data_item_id, so this change aligns the table definition with that structure.

For new installations, the base schema now defines activity.data_item_type before activity.data_item_id. The related security test fixture was updated to keep the explicit INSERT INTO activity (...) column order and corresponding values consistent with the schema.

For existing installations, a new install schema migration was added to move activity.data_item_type directly after activity_id. The migration only changes the physical column position and does not alter data, indexes, column types, defaults, nullability or unrelated schema objects.

@anonymoususer72041 anonymoususer72041 changed the title fix: reorder activity data item columns refactor: reorder activity data item columns May 8, 2026
@anonymoususer72041 anonymoususer72041 changed the title refactor: reorder activity data item columns feat: reorder activity data item columns May 12, 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