4
4
4sadly2021-11-26 19:05:30
Laravel
4sadly, 2021-11-26 19:05:30

How to make laravel double to int migration?

I have a price column with type double(8,2) I would like to multiply this column by 100 and turn it into an integer, how can I do it using migrations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2021-11-26
@JhaoDa

Write a raw query in the migration.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question