Created by: aspirantzhang
老版本的phinx默认ID是signed类型,且无法进一步设置。修改后更改为默认unsigned类型,且可以配置signed为true来重置为signed类型。
$this->table('admin')->create(); //ID为unsigned类型
$this->table('admin',['signed' => 'true'])->create(); //ID为signed类型
Created by: aspirantzhang
老版本的phinx默认ID是signed类型,且无法进一步设置。修改后更改为默认unsigned类型,且可以配置signed为true来重置为signed类型。
$this->table('admin')->create(); //ID为unsigned类型
$this->table('admin',['signed' => 'true'])->create(); //ID为signed类型