@@ -0,0 +1,1045 @@
+%22%22%22Cleanup of various deprecated data elements.%0A%0ARevision ID: 5615d592f571%0ARevises: 58f20ece0b91%0ACreate Date: 2017-11-01 10:41:52.145075%0A%0A%22%22%22%0Afrom alembic import op%0Aimport sqlalchemy as sa%0Afrom sqlalchemy.dialects import postgresql%0A%0A# revision identifiers, used by Alembic.%0Arevision = '5615d592f571'%0Adown_revision = '58f20ece0b91'%0A%0A%0Adef upgrade():%0A    op.drop_table('entity_identity')%0A    op.drop_table('reference')%0A    op.drop_table('link')%0A    op.create_index(op.f('ix_document_foreign_id'), 'document', %5B'foreign_id'%5D, unique=False)%0A    op.create_index(op.f('ix_document_parent_id'), 'document', %5B'parent_id'%5D, unique=False)%0A    op.drop_index('ix_document_crawler', table_name='document')%0A    op.drop_index('ix_document_status', table_name='document')%0A    op.drop_index('ix_document_type', table_name='document')%0A    op.drop_column('document', 'error_type')%0A    op.drop_column('document', 'crawler_run')%0A    op.drop_column('document', 'crawler')%0A    op.drop_index('ix_entity_state', table_name='entity')%0A    op.drop_column('entity', 'state')%0A

Delete unused database fields.