General Question about unsigned table fields
Hello together,
I recognized that yii migrations create primary keys without unsigned attribute…
And now I’m confused.
So I googled and found as answer for example:
-
not all databses are using unsigned so the compatibility for the migration is higher
-
unsigned int => you face the problem that it may not be accurately represented as a PHP integer.
Okay so far so good… I understood that.
But now I have questions in my mind like:
-
What is the best practise?
-
How do you guys handle that in general?
-
Are there cases where it makes sense to use unsinged?
-
Should I don’t care about it anymore and avoid using it in general?
-
Except the possible higher positive numbers, what would be the benefit of unsinged?
Thank you for your feedback.
Regards