From 00d6aa49efec3deeb41187081b687cd50db914b7 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 15 May 2019 17:49:53 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20mini-migra=C3=A7=C3=A3o=20para=20com?= =?UTF-8?q?mit=2054c6b38?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0028_auto_20190515_1744.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sapl/parlamentares/migrations/0028_auto_20190515_1744.py diff --git a/sapl/parlamentares/migrations/0028_auto_20190515_1744.py b/sapl/parlamentares/migrations/0028_auto_20190515_1744.py new file mode 100644 index 000000000..2c230d88c --- /dev/null +++ b/sapl/parlamentares/migrations/0028_auto_20190515_1744.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-05-15 20:44 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0027_auto_20190430_0839'), + ] + + operations = [ + migrations.RunSQL(""" + UPDATE base_autor SET content_type_id = (SELECT id FROM django_content_type WHERE app_label = 'parlamentares' AND model = 'bloco') + WHERE content_type_id = (SELECT id FROM django_content_type WHERE app_label = 'sessao' AND model = 'bloco'); + """) + ]