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

Fixes postgres compatibility #1852

Merged

Conversation

jstoks
Copy link
Contributor

@jstoks jstoks commented Jul 5, 2024

fixes #1849 so that Lunar can be upgraded without issue using PostgreSQL.

This has only been manually testing against Postgres 15.

The intent of the original version was, no doubt, to be more robust than a simple null check. However the case of a non-valid, non-null value existing in the product_options.label seems to be beyond the scope of a simple script meant to backfill new columns with default data.

Implementing a check for an empty object or non-object value is tricky without writting different checks for each DB engines.

fixes lunarphp#1849 so that Lunar can be upgraded without issue using PostgreSQL.

This has only been manually testing against Postgres 15.

The intent of the original version was, no doubt, to be more robust than
a simple null check. However the case of a non-valid, non-null value existing in the
product_options.label seems to be beyond the scope of a simple script
meant to backfill new columns with default data.

Implementing a check for an empty object or non-object value is tricky
without writting different checks for each DB engines.
Copy link

vercel bot commented Jul 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2024 10:32pm

@alecritson alecritson merged commit 3759324 into lunarphp:1.x Aug 13, 2024
2 checks 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.

Product Options Label unable to reach valid state in DB
3 participants