﻿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
31326	Deleting a concrete subclass table with no additional fields results results in invalid migration	Stephen Finucane	nobody	"Take the following models

    {{{#!python
    class Parent(models.Model):
        name = models.CharField(max_length=255)

    class Child(Parent):
        pass
    }}}

Attempting the delete `Child` will result in a migration like so:

    {{{#!python
    from django.db import migrations

    class Migration(migrations.Migration):
        dependencies = []

        operations = [
            migrations.RemoveField(
                model_name='child',
                name='parent_ptr',
            ),
            migrations.DeleteModel(
                name='Child',
            ),
        ]
    }}}

Unfortunately this results in an error from PostgreSQL at least:

    {{{
    django.db.utils.OperationalError: (1090, ""You can't delete all columns with ALTER TABLE; use DROP TABLE instead"")
    }}}"	Uncategorized	closed	Uncategorized	1.11	Normal	invalid			Unreviewed	0	0	0	0	0	0
