Browse Source

Ajusta migrations entre 3.1.x e master (#3009)

pull/3024/head
Edward 5 years ago
committed by GitHub
parent
commit
13c5a0f4ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 0
      sapl/materia/migrations/0054_merge_20190802_1112.py
  2. 2
      sapl/materia/migrations/0055_auto_20190816_0943.py
  3. 2
      sapl/parlamentares/migrations/0032_auto_20190619_1509.py
  4. 0
      sapl/protocoloadm/migrations/0023_merge_20190802_1112.py
  5. 2
      sapl/protocoloadm/migrations/0024_merge_20190821_1418.py
  6. 4
      sapl/sessao/migrations/0044_auto_20190816_1336.py
  7. 16
      sapl/sessao/migrations/0044_merge_20190802_1117.py
  8. 7
      sapl/sessao/migrations/0045_auto_20190816_1337.py
  9. 62
      sapl/sessao/migrations/0046_auto_20190827_1228.py
  10. 2
      sapl/sessao/migrations/0046_auto_20191001_1115.py
  11. 5
      sapl/sessao/migrations/0047_merge_20191009_1535.py
  12. 44
      sapl/sessao/migrations/0048_auto_20191009_1550.py

0
sapl/materia/migrations/0054_merge_20190802_1117.py → sapl/materia/migrations/0054_merge_20190802_1112.py

2
sapl/materia/migrations/0055_auto_20190816_0943.py

@ -8,7 +8,7 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('materia', '0054_merge_20190802_1117'), ('materia', '0054_merge_20190802_1112'),
] ]
operations = [ operations = [

2
sapl/parlamentares/migrations/0032_auto_20190619_1509.py

@ -10,7 +10,7 @@ class Migration(migrations.Migration):
dependencies = [ dependencies = [
('parlamentares', '0031_auto_20190614_1203'), ('parlamentares', '0031_auto_20190614_1203'),
('sessao', '0043_auto_20190506_1452'), ('sessao', '0043_auto_20190712_1053'),
] ]
state_operations = [ state_operations = [

0
sapl/protocoloadm/migrations/0023_merge_20190802_1117.py → sapl/protocoloadm/migrations/0023_merge_20190802_1112.py

2
sapl/protocoloadm/migrations/0024_merge_20190821_1418.py

@ -9,7 +9,7 @@ class Migration(migrations.Migration):
dependencies = [ dependencies = [
('protocoloadm', '0023_auto_20190711_1755'), ('protocoloadm', '0023_auto_20190711_1755'),
('protocoloadm', '0023_merge_20190802_1117'), ('protocoloadm', '0023_merge_20190802_1112'),
] ]
operations = [ operations = [

4
sapl/sessao/migrations/0045_auto_20190809_1319.py → sapl/sessao/migrations/0044_auto_20190816_1336.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-09 16:19 # Generated by Django 1.11.20 on 2019-08-16 16:36
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations, models from django.db import migrations, models
@ -8,7 +8,7 @@ from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('sessao', '0044_merge_20190802_1117'), ('sessao', '0043_auto_20190712_1053'),
] ]
operations = [ operations = [

16
sapl/sessao/migrations/0044_merge_20190802_1117.py

@ -1,16 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-02 14:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sessao', '0043_auto_20190712_1053'),
('sessao', '0043_auto_20190506_1452'),
]
operations = [
]

7
sapl/sessao/migrations/0046_auto_20190809_1319.py → sapl/sessao/migrations/0045_auto_20190816_1337.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-09 16:19 # Generated by Django 1.11.20 on 2019-08-16 16:37
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations from django.db import migrations
@ -7,16 +7,15 @@ from django.db import migrations
def migra_ordenacao_tipos(apps, schema_editor): def migra_ordenacao_tipos(apps, schema_editor):
TipoExpediente = apps.get_model('sessao', 'TipoExpediente') TipoExpediente = apps.get_model('sessao', 'TipoExpediente')
for i,tipo in enumerate(TipoExpediente.objects.all().order_by('nome')): for i,tipo in enumerate(TipoExpediente.objects.all().order_by('nome')):
tipo.ordenacao=i+1 tipo.ordenacao=i+1
tipo.save() tipo.save()
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('sessao', '0045_auto_20190809_1319'), ('sessao', '0044_auto_20190816_1336'),
] ]
operations = [ operations = [

62
sapl/sessao/migrations/0046_auto_20190827_1228.py

@ -0,0 +1,62 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-08-27 15:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('materia', '0055_auto_20190816_0943'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sessao', '0045_auto_20190816_1337'),
]
operations = [
migrations.CreateModel(
name='RegistroLeitura',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('observacao', models.TextField(blank=True, verbose_name='Observações')),
('ip', models.CharField(blank=True, default='', max_length=30, verbose_name='IP')),
('data_hora', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Data/Hora')),
],
options={
'verbose_name': 'Leitura',
'verbose_name_plural': 'Leituras',
},
),
migrations.AlterField(
model_name='expedientemateria',
name='tipo_votacao',
field=models.PositiveIntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta'), (4, 'Leitura')], default=1, verbose_name='Tipo de votação'),
),
migrations.AlterField(
model_name='ordemdia',
name='tipo_votacao',
field=models.PositiveIntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta'), (4, 'Leitura')], default=1, verbose_name='Tipo de votação'),
),
migrations.AddField(
model_name='registroleitura',
name='expediente',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.ExpedienteMateria'),
),
migrations.AddField(
model_name='registroleitura',
name='materia',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='materia.MateriaLegislativa'),
),
migrations.AddField(
model_name='registroleitura',
name='ordem',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.OrdemDia'),
),
migrations.AddField(
model_name='registroleitura',
name='user',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
),
]

2
sapl/sessao/migrations/0047_auto_20191001_1115.py → sapl/sessao/migrations/0046_auto_20191001_1115.py

@ -10,7 +10,7 @@ import sapl.utils
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('sessao', '0046_auto_20190809_1319'), ('sessao', '0045_auto_20190816_1337'),
] ]
operations = [ operations = [

5
sapl/sessao/migrations/0043_auto_20190506_1452.py → sapl/sessao/migrations/0047_merge_20191009_1535.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-06 17:52 # Generated by Django 1.11.20 on 2019-10-09 18:35
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import migrations from django.db import migrations
@ -8,7 +8,8 @@ from django.db import migrations
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('sessao', '0042_merge_20190612_0925'), ('sessao', '0046_auto_20190827_1228'),
('sessao', '0046_auto_20191001_1115'),
] ]
database_operations = [ database_operations = [

44
sapl/sessao/migrations/0048_auto_20191009_1550.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-10-09 18:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sessao', '0047_merge_20191009_1535'),
]
operations = [
migrations.RemoveField(
model_name='registroleitura',
name='expediente',
),
migrations.RemoveField(
model_name='registroleitura',
name='materia',
),
migrations.RemoveField(
model_name='registroleitura',
name='ordem',
),
migrations.RemoveField(
model_name='registroleitura',
name='user',
),
migrations.AlterField(
model_name='expedientemateria',
name='tipo_votacao',
field=models.PositiveIntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta')], default=1, verbose_name='Tipo de votação'),
),
migrations.AlterField(
model_name='ordemdia',
name='tipo_votacao',
field=models.PositiveIntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta')], default=1, verbose_name='Tipo de votação'),
),
migrations.DeleteModel(
name='RegistroLeitura',
),
]
Loading…
Cancel
Save