امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Given the example code:
PHP:
It will generate the following (invalid) SQL:
SQL:
The issue is
SQL:
Read more
PHP:
کد:
$this->schemaManager()->createTable('test', function(Create $table) {
$table->addColumn('id','int')->values(null);
});
It will generate the following (invalid) SQL:
SQL:
کد:
CREATE TABLE `test` (
`id` INT(NULL) UNSIGNED NOT NULL
);
The issue is
XF\Db\Schema\Column::values(), doesn't handle null sanely, and converts it into [null] unlike all the other fluent functions for XF\Db\Schema\ColumnSQL:
public function...Read more
