

def forwards(self, orm):
    db.delete_column('committees_committee', 'chairperson_id')
    db.create_table('committees_committee_chairpersons', (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('committee', models.ForeignKey(orm['committees.committee'], null=False)), ('member', models.ForeignKey(orm['mks.member'], null=False))))
    db.create_unique('committees_committee_chairpersons', ['committee_id', 'member_id'])
    db.create_table('committees_committee_replacements', (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('committee', models.ForeignKey(orm['committees.committee'], null=False)), ('member', models.ForeignKey(orm['mks.member'], null=False))))
    db.create_unique('committees_committee_replacements', ['committee_id', 'member_id'])

dataset/ETHPy150Open ofri/Open-Knesset/committees/migrations/0006_member_differentiation.py Migration.forwards/original