8000 Use valid dates when unsaling products by gohanman · Pull Request #935 · CORE-POS/IS4C · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use valid dates when unsaling products #935

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

Merged
merged 1 commit into from
Oct 12, 2017
Merged

Use valid dates when unsaling products #935

merged 1 commit into from
Oct 12, 2017

Conversation

gohanman
Copy link
Contributor

CORE has historically used a wide variety of empty-ish values in products.start_date and products.end_date that would be permissively accepted by older versions and configurations of MySQL. Newer out-of-the-box strictness settings are less tolerant of this kind of thing. Submitting cleaner data is a better solution than asking users to dial-down strictness settings.

This approach uniformly uses 1900-01-01 for dates when taking an item off sale. There's probably a fair argument for NULL but 1900-01-01 is one of the values that's been used for this purpose in the past.

@gohanman gohanman merged commit 69c087f into master Oct 12, 2017
@gohanman gohanman deleted the safe-dates branch October 12, 2017 21:07
@gohanman gohanman restored the safe-dates branch October 12, 2017 21:07
@gohanman gohanman deleted the safe-dates branch December 29, 2017 21:29
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
0