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

Bug when migrating with data in ps_image_slider #43

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

Ken-vdE
Copy link
Contributor

@Ken-vdE Ken-vdE commented Sep 21, 2023

When running prestashop:schema:update-without-foreign while there are records in ps_image_slider the sql query becomes ALTER TABLE ps_image_slider ADD display_from DATETIME NOT NULL, ADD display_to DATETIME NOT NULL which throws an error because no value is set in those fields.

When running prestashop:schema:update-without-foreign while there are records in ps_image_slider the sql query becomes `ALTER TABLE ps_image_slider ADD display_from DATETIME NOT NULL, ADD display_to DATETIME NOT NULL` which throws an error because no value is set in those fields.
@Oksydan
Copy link
Owner

Oksydan commented Oct 10, 2023

Hi @Ken-vdE,

thank you for your contribution.
I am merging this but please next time create an issue before posting a PR.

@Oksydan Oksydan merged commit 4b1948a into Oksydan:develop Oct 10, 2023
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