PHP 8.2 Deprecated cleaning
This commit is contained in:
@@ -1044,7 +1044,7 @@ class Dblayeroo
|
||||
if ($col["is_nullable"] === "NO") {
|
||||
$tmp[] = "not null";
|
||||
}
|
||||
if (substr($col["column_default"], 0, 7) === "nextval") {
|
||||
if (is_string($col["column_default"]) && substr($col["column_default"], 0, 7) === "nextval") {
|
||||
$tmp[] = "autoincrement";
|
||||
$primary = $col["column_name"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user