Decimal type Phinx Slim Framework

Asked

Viewed 32 times

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 answer

1


It works that way:

$oss->addColumn('valor','decimal', ['precision' => 10, 'scale' => 8]);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.