Browse Source

Revert "HOTFIX: corrige migrate parlamentares 0029"

This reverts commit d10510a598.
pull/2791/head
Leandro Roberto 6 years ago
parent
commit
1bdf62cec6
  1. 21
      sapl/parlamentares/migrations/0029_auto_20190517_1531.py

21
sapl/parlamentares/migrations/0029_auto_20190517_1531.py

@ -13,9 +13,22 @@ class Migration(migrations.Migration):
operations = [ operations = [
migrations.RunSQL(""" migrations.RunSQL("""
update django_content_type set update base_autor
app_label = 'parlamentares', set tipo_id = (select id
model = 'bloco' from base_tipoautor
where app_label = 'sessao' and model = 'bloco' 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'));
"""), """),
migrations.RunSQL("""
delete from base_tipoautor
where content_type_id = (select id
from django_content_type
where app_label = 'sessao' and model = 'bloco')
""")
] ]

Loading…
Cancel
Save