XF\Db\Schema\Column::values() can generate invalid SQL

Given the example code:
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\Column

SQL:

public function...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ