From c6fbf848993d28b138e733d5b0af9b4308b4f912 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Fri, 16 Dec 2022 11:02:30 +0100 Subject: [PATCH] Dblayeroo : in SQLite, the intergers are now return casted to integer instead of string --- src/Dblayeroo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dblayeroo.php b/src/Dblayeroo.php index 02a594d..a1f968d 100644 --- a/src/Dblayeroo.php +++ b/src/Dblayeroo.php @@ -804,10 +804,10 @@ class Dblayeroo foreach ($content as $row) { $type = str_replace(" ", "", strtolower($row["type"])); $fields[$row["name"]][] = $type; - if ($row["notnull"] === "1") { + if ($row["notnull"] === "1" || $row["notnull"] === 1) { $fields[$row["name"]][] = "not null"; } - if ($row["pk"] === "1") { + if ($row["pk"] === "1" || $row["pk"] === 1) { $primary = $row["name"]; } }