From a5e34ad98fc5712469672d16e0a91d17116628d1 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 13 Jan 2016 13:16:51 -0200 Subject: [PATCH] Add new table to register email --- sessao/migrations/0010_acompanharmateria.py | 27 ++++++++++++++++++++ sessao/migrations/0011_auto_20160113_1239.py | 19 ++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 sessao/migrations/0010_acompanharmateria.py create mode 100644 sessao/migrations/0011_auto_20160113_1239.py diff --git a/sessao/migrations/0010_acompanharmateria.py b/sessao/migrations/0010_acompanharmateria.py new file mode 100644 index 000000000..30e03f620 --- /dev/null +++ b/sessao/migrations/0010_acompanharmateria.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +from django.conf import settings + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0013_remove_tramitacao_ultima'), + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('sessao', '0009_auto_20151005_0934'), + ] + + operations = [ + migrations.CreateModel( + name='AcompanharMateria', + fields=[ + ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True, serialize=False)), + ('email', models.CharField(verbose_name='Endereço de email', max_length=50)), + ('data_cadastro', models.DateField(auto_now_add=True)), + ('materia_cadastrada', models.ForeignKey(to='materia.MateriaLegislativa')), + ('usuario', models.ForeignKey(to=settings.AUTH_USER_MODEL)), + ], + ), + ] diff --git a/sessao/migrations/0011_auto_20160113_1239.py b/sessao/migrations/0011_auto_20160113_1239.py new file mode 100644 index 000000000..b740ae875 --- /dev/null +++ b/sessao/migrations/0011_auto_20160113_1239.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0010_acompanharmateria'), + ] + + operations = [ + migrations.AlterField( + model_name='acompanharmateria', + name='usuario', + field=models.CharField(max_length=50), + ), + ]