@@ -0,0 +1,930 @@
+%22%22%22Remove copied_from_brief_id column from briefs table  as it has been superseded with 'is_a-copy' boolaean column%0Ato fix a bug. The bug made it impossible to delete a draft brief if a copy was made from it. Reason for this is%0Athat the original and the copy were bound by a parent-child database relationship.%0A%0ARevision ID: 910%0ARevises: 900%0ACreate Date: 2017-06-01%0A%22%22%22%0A%0A# revision identifiers, used by Alembic.%0Arevision = '910'%0Adown_revision = '900'%0A%0Afrom alembic import op%0Afrom sqlalchemy import Column, ForeignKey, INTEGER%0A%0A%0Adef upgrade():%0A    %22%22%22Drop column as it has been superseded with 'is_a-copy' boolaean copy to fix a bug.%22%22%22%0A    op.drop_column(%0A        'briefs',%0A        'copied_from_brief_id'%0A    )%0A%0A%0Adef downgrade():%0A    %22%22%22Reinstates copied_from_brief_id column, but without populating with data.%22%22%22%0A    op.add_column(%0A        'briefs',%0A        Column('copied_from_brief_id', INTEGER, ForeignKey('briefs.id'))%0A    )%0A

Delete 'copied_from_brief_id' column and create a correspnding migration