Wouldn't it be nicer to use the unsigned type? UNSIGNED MEDIUMINT has a range from 0 to 16777215
The 8 in MEDIUMINT(8) is used in mysql for spacing purposes:
MEDIUMINT(M)
M Indicates the maximum display size. The maximum legal display size is 255.
---
Robert-Reinder (rr@sodutch.com)