I am creating a table using Knex.JS , and the table has a column for the currency value.
For example, here is a column amount:
knex.schema.createTable('payment', function(table) {
table.increments();
table.float('amount');
})
I am currently using a type float, but I would like to use a type numeric. What is equivalent to the numeric type in Knex.JS?
Thank.
source
share