Browse Source

HOT-FIX: outra migração para consertar commit 54c6b38

pull/2792/head
Edward Ribeiro 6 years ago
parent
commit
6907c4a259
  1. 34
      sapl/parlamentares/migrations/0029_auto_20190517_1531.py

34
sapl/parlamentares/migrations/0029_auto_20190517_1531.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-17 18:31
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('parlamentares', '0028_auto_20190515_1744'),
]
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'));
"""),
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