diff --git a/sapl/parlamentares/migrations/0029_auto_20190517_1531.py b/sapl/parlamentares/migrations/0029_auto_20190517_1531.py index ef24afd91..4f198bf0f 100644 --- a/sapl/parlamentares/migrations/0029_auto_20190517_1531.py +++ b/sapl/parlamentares/migrations/0029_auto_20190517_1531.py @@ -13,22 +13,9 @@ class Migration(migrations.Migration): operations = [ migrations.RunSQL(""" - update base_autor - set tipo_id = (select id - from base_tipoautor - where content_type_id = (select id - from django_content_type - where app_label = 'parlamentares' and model = 'bloco')) - where tipo_id = (select id - from base_tipoautor - where content_type_id = (select id - from django_content_type - where app_label = 'sessao' and model = 'bloco')); + update django_content_type set + app_label = 'parlamentares', + model = 'bloco' + where app_label = 'sessao' and model = 'bloco' """), - migrations.RunSQL(""" - delete from base_tipoautor - where content_type_id = (select id - from django_content_type - where app_label = 'sessao' and model = 'bloco') - """) ]