diff --git a/src/Migrations/Version20230908101855.php b/src/Migrations/Version20230908101855.php index 7578c901..62851280 100644 --- a/src/Migrations/Version20230908101855.php +++ b/src/Migrations/Version20230908101855.php @@ -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) { @@ -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) {