Dblayeroo : in SQLite, the intergers are now return casted to integer instead of string

This commit is contained in:
2022-12-16 11:02:30 +01:00
parent 303a188e7c
commit c6fbf84899

View File

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