﻿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
28640	migrations.AlterField changing from default=False to True drops default	Axel Rau	nobody	"This migration:

{{{
class Migration(migrations.Migration):

    dependencies = [
        ('erdb', '0004_auto_20170806_1346'),
    ]

    operations = [
        migrations.AlterField(
            model_name='account',
            name='is_active',
            field=models.BooleanField(default=True, editable=('AE',), verbose_name='Is active'),
        ),
    ]

}}}

produces this SQL:

{{{
BEGIN;
--
-- Alter field is_active on account
--
ALTER TABLE ""account"" ALTER COLUMN ""is_active"" SET DEFAULT true;
ALTER TABLE ""account"" ALTER COLUMN ""is_active"" DROP DEFAULT;
COMMIT;

}}}
This is Django 1.11.5 and PostgreSQL 9.4.6."	Bug	closed	Migrations	1.11	Normal	duplicate	migrations, alter field, default, drop default		Accepted	0	0	0	0	0	0
