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

Remove spec that tests default data store value #2184

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Aug 27, 2021

Do not expect that an ingredient data is an empty Hash

In MySQL/MariaDB and sqlite you cannot set an default value
to a json column. Since we use Rails' data store feature
and this works without the default db value we can simply
remove that spec.

Follow up to #2183

@tvdeyen tvdeyen force-pushed the fix-data-store-for-mysql branch 2 times, most recently from da75869 to 7292f59 Compare August 27, 2021 15:22
In MySQL/MariaDB and sqlite you cannot set an default value
to a json column. Since we use Rails' data store feature
and this works without the default db value we can simply
remove that spec.
@tvdeyen tvdeyen changed the title Set ingredients data column default to {} in mysql as well Remove spec that tests default data store value Aug 27, 2021
@tvdeyen tvdeyen requested a review from mamhoff August 27, 2021 15:34
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Away with all that public API!

@tvdeyen tvdeyen merged commit 01c55fb into AlchemyCMS:main Aug 27, 2021
@tvdeyen tvdeyen deleted the fix-data-store-for-mysql branch August 27, 2021 15:37
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.

2 participants