I'm building some application based on LaraAdmin crud generator. I need a field to be a BigInt since the possible values are bigger than a normal Integer. How should I achieve that in order to not make the system crash?
Asked
Active
Viewed 49 times
0
-
Just change it over, it won't cause a crash. – Option Feb 27 '18 at 14:14
-
But the "Models" that LaraAdmin works with has a dropdown with defined visualization types that also define the table/column structure, How will it react to a type it does not recognize? – leopinzon Feb 28 '18 at 20:59
-
1It'll still be classed as an integer it just means large values can be stored within the database. – Option Mar 02 '18 at 07:59
-
That made the trick, thanks! – leopinzon Mar 02 '18 at 19:56
-
I have added it as an answer for you so that others can can utilise this in the event they ever run into the same problem. – Option Mar 03 '18 at 10:33
1 Answers
1
Because it is stored already as an integer, simply change the database type to biginteger and it'll be fine as they both store numerical values.

Option
- 2,605
- 2
- 19
- 29