﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25133	Changing a PositiveIntegerField to an IntegerField does not remove >=0 check in migration	Jared Proffitt	nobody	"When you change a `PositiveIntegerField` to just an `IntegerField`, the >=0 database check in postgres is not removed when running the migration.

Initial migration:

{{{
('year', models.PositiveIntegerField(blank=True, null=True,)),
}}}

Alter migration:

{{{
migrations.AlterField(
    model_name='art',
    name='year',
    field=models.IntegerField(blank=True, null=True),
    preserve_default=True,
),
}}}

I'm left with having to do a `RunSQL` operation to remove the constraint."	Bug	closed	Migrations	1.8	Normal	needsinfo	migrations, postgres	Simon Charette Jared Proffitt	Unreviewed	0	0	0	0	0	0
