diff options
Diffstat (limited to 'backend/php-mysql/index.php')
-rw-r--r-- | backend/php-mysql/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/php-mysql/index.php b/backend/php-mysql/index.php index b1f8244..1c6859c 100644 --- a/backend/php-mysql/index.php +++ b/backend/php-mysql/index.php @@ -47,7 +47,7 @@ $name = $row["COLUMN_NAME"]; $type = $row["COLUMN_TYPE"]; $comment = (isset($row["COLUMN_COMMENT"]) ? $row["COLUMN_COMMENT"] : ""); - $null = ($row["IS_NULLABLE"] == "YES" ? "0" : "1"); + $null = ($row["IS_NULLABLE"] == "YES" ? "1" : "0"); $def = $row["COLUMN_DEFAULT"]; $ai = (preg_match("/auto_increment/i",$row["EXTRA"]) ? "1" : "0"); if ($def == "NULL") { $def = ""; } |