Skip to content

Commit

Permalink
fix migration query (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Oct 18, 2023
1 parent 215dbee commit 52c1f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migrations/Version20230908101855.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function up(Schema $schema): void
return $carry;
}, []);

$forms = $this->connection->fetchAllAssociative("SELECT id, conditionalLogic FROM formbuilder_forms WHERE conditionalLogic LIKE '%switchOutputWorkflow%'");
$forms = $this->connection->fetchAllAssociative("SELECT id, conditionalLogic FROM formbuilder_forms WHERE (conditionalLogic LIKE '%\"switchOutputWorkflow\"%' OR conditionalLogic LIKE '%\"outputWorkflow\"%')");

foreach ($forms as $form) {

Expand Down Expand Up @@ -88,7 +88,7 @@ public function down(Schema $schema): void
return $carry;
}, []);

$forms = $this->connection->fetchAllAssociative("SELECT id, conditionalLogic FROM formbuilder_forms WHERE conditionalLogic LIKE '%switchOutputWorkflow%'");
$forms = $this->connection->fetchAllAssociative("SELECT id, conditionalLogic FROM formbuilder_forms WHERE (conditionalLogic LIKE '%\"switchOutputWorkflow\"%' OR conditionalLogic LIKE '%\"outputWorkflow\"%')");

foreach ($forms as $form) {

Expand Down

0 comments on commit 52c1f04

Please sign in to comment.