Skip to content

Commit

Permalink
Bug when migrating with data in ps_image_slider
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ken-vdE authored Sep 21, 2023
1 parent 95dfa11 commit e435d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/ImageSlider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ class ImageSlider
/**
* @var \DateTime
*
* @ORM\Column(name="display_from", type="datetime")
* @ORM\Column(name="display_from", type="datetime", nullable=true)
*/
private $display_from;

/**
* @var \DateTime
*
* @ORM\Column(name="display_to", type="datetime")
* @ORM\Column(name="display_to", type="datetime", nullable=true)
*/
private $display_to;

Expand Down

0 comments on commit e435d54

Please sign in to comment.