Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix field update for data types with length or boolean as default value #6163

Merged
merged 3 commits into from Jun 9, 2021
Merged

Fix field update for data types with length or boolean as default value #6163

merged 3 commits into from Jun 9, 2021

Conversation

paescuj
Copy link
Member

@paescuj paescuj commented Jun 9, 2021

Fixes #6130

Tested with most field types in MySQL, PostgreSQL and SQLite.
I had to exclude longtext (used for JSON in MySQL) from this new behavior as it doesn't support the length property but Directus has it stored in the field schema.

api/src/services/fields.ts Outdated Show resolved Hide resolved
api/src/services/fields.ts Outdated Show resolved Hide resolved
api/src/services/fields.ts Outdated Show resolved Hide resolved
@rijkvanzanten rijkvanzanten merged commit 927b9f8 into directus:main Jun 9, 2021
@paescuj paescuj deleted the fix-db-column-update branch June 10, 2021 04:51
@rijkvanzanten rijkvanzanten added this to the v9.0.0-rc.75 milestone Jun 10, 2021
@rijkvanzanten rijkvanzanten changed the title Fix DB column update for data types with length or boolean as default value Fix field update for data types with length or boolean as default value Jun 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems with fields default values
2 participants