0
How can I create a decimal type in Phinx Migration, see how it is currently:
$oss->addColumn('valor','decimal', ['limit' => 10.2]);
I’ve tried several ways and I can’t, it always generates only 10.0.
0
How can I create a decimal type in Phinx Migration, see how it is currently:
$oss->addColumn('valor','decimal', ['limit' => 10.2]);
I’ve tried several ways and I can’t, it always generates only 10.0.
1
It works that way:
$oss->addColumn('valor','decimal', ['precision' => 10, 'scale' => 8]);
Browser other questions tagged slim
You are not signed in. Login or sign up in order to post.