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"]; } }