Dblayeroo : in SQLite, the intergers are now return casted to integer instead of string
This commit is contained in:
@@ -804,10 +804,10 @@ class Dblayeroo
|
|||||||
foreach ($content as $row) {
|
foreach ($content as $row) {
|
||||||
$type = str_replace(" ", "", strtolower($row["type"]));
|
$type = str_replace(" ", "", strtolower($row["type"]));
|
||||||
$fields[$row["name"]][] = $type;
|
$fields[$row["name"]][] = $type;
|
||||||
if ($row["notnull"] === "1") {
|
if ($row["notnull"] === "1" || $row["notnull"] === 1) {
|
||||||
$fields[$row["name"]][] = "not null";
|
$fields[$row["name"]][] = "not null";
|
||||||
}
|
}
|
||||||
if ($row["pk"] === "1") {
|
if ($row["pk"] === "1" || $row["pk"] === 1) {
|
||||||
$primary = $row["name"];
|
$primary = $row["name"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user