Skip to content

refactor(enums): Convert Asset and Connection types to string-backed …#40

Merged
kyledoesdev merged 1 commit into
masterfrom
hotfix/fix-music-edit-error
Jun 9, 2026
Merged

refactor(enums): Convert Asset and Connection types to string-backed …#40
kyledoesdev merged 1 commit into
masterfrom
hotfix/fix-music-edit-error

Conversation

@kyledoesdev

Copy link
Copy Markdown
Owner

…enums

Updates AssetType and ConnectionType enums to use string values instead of integers.

This involves renaming type_id columns to type in the assets and connections tables, along with a data migration to convert existing integer values to their new string representations.

The change enhances readability, improves type safety, and simplifies related logic by leveraging native Laravel string-backed enum casting.

…enums

Updates `AssetType` and `ConnectionType` enums to use string values instead of integers.

This involves renaming `type_id` columns to `type` in the `assets` and `connections` tables, along with a data migration to convert existing integer values to their new string representations.

The change enhances readability, improves type safety, and simplifies related logic by leveraging native Laravel string-backed enum casting.
@kyledoesdev kyledoesdev merged commit c37ca73 into master Jun 9, 2026
1 check passed
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