Skip to content

Commit

Permalink
Update 418RC8PHRAS3768.php (#4435)
Browse files Browse the repository at this point in the history
disable patch crashing caused missing table "basketelements"
  • Loading branch information
jygaulier authored Dec 7, 2023
1 parent 66abd56 commit cbb131d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/classes/patch/418RC8PHRAS3768.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ private function patch_databox(databox $databox, Application $app)

private function patch_appbox(base $appbox, Application $app)
{
$cnx = $appbox->get_connection();
$sql = "ALTER TABLE `BasketElements` ADD `vote_expired` DATETIME NULL, ADD INDEX `vote_expired` (`vote_expired`)";
// disabled cause crash on some install (missing table) due to pre-post migration (?)
// $cnx = $appbox->get_connection();
// $sql = "ALTER TABLE `BasketElements` ADD `vote_expired` DATETIME NULL, ADD INDEX `vote_expired` (`vote_expired`)";
// try {
$cnx->exec($sql);
// $cnx->exec($sql);
// }
// catch (\Exception $e) {
// the field already exist ?
Expand Down

0 comments on commit cbb131d

Please sign in to comment.