From dac6dcb73206df43dbbcdc8a0314a7e4736f7c67 Mon Sep 17 00:00:00 2001 From: Watheq Alshowaiter Date: Sat, 20 Jul 2024 00:11:02 +0300 Subject: [PATCH] debug: fix for mariadb method --- src/RequiredFields.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RequiredFields.php b/src/RequiredFields.php index 8dc8523..4eb68c1 100644 --- a/src/RequiredFields.php +++ b/src/RequiredFields.php @@ -152,7 +152,7 @@ private static function getRequiredFieldsForMysqlAndMariaDb( return (array) $column; }, $queryResult); - if(!$withNullables){ + if($withNullables){ dump($queryResult); // todo remove it later } @@ -160,7 +160,7 @@ private static function getRequiredFieldsForMysqlAndMariaDb( ->reject(function ($column) use ($withNullables, $withDefaults, $withPrimaryKey) { return $column['primary'] && !$withPrimaryKey || $column['default'] != null && !$withDefaults - || $column['nullable'] == 1 && !$withNullables; + || $column['nullable'] && !$withNullables; }) ->pluck('name') ->toArray();