i want to change constraint that SmallPositiveIntegerField
produces in Db during migration:
last_watched_episode smallint
constraint archives_seasonmodel_last_watched_episode_check
check (last_watched_episode >= 0),
I want to change check (last_watched_episode >= 0)
to check (last_watched_episode >= 1).
Do you know where is the source code of this field in Django, that is in charge for making constraints?
I need it in order to create mixin for this field.
Thank you.
Point is to have only one constraint >=1 . If i did it via META class constraint, i would have 2 separete constraints >=0 and >= 1, which is makes no sence.