diff --git a/painel/migrations/0001_initial.py b/painel/migrations/0001_initial.py index ee7ee4836..a19a4efeb 100644 --- a/painel/migrations/0001_initial.py +++ b/painel/migrations/0001_initial.py @@ -13,20 +13,17 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Cronometro', fields=[ - ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)), - ('start', models.PositiveIntegerField(verbose_name='Iniciar cronômetro')), - ('reset', models.PositiveIntegerField(verbose_name='Reiniciar cronômetro')), - ('stop', models.PositiveIntegerField(verbose_name='Parar cronômetro')), - ('data_painel', models.DateField(verbose_name='Data cronômetro')), - ('tipo', models.CharField(max_length=1, choices=[('A', 'Aparte'), ('D', 'Discurso'), ('O', 'Ordem do dia')], verbose_name='Tipo Cronômetro')), + ('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)), + ('status', models.CharField(max_length=1, verbose_name='Status do cronômetro', choices=[('I', 'Start'), ('R', 'Reset'), ('S', 'Stop')], default='S')), + ('data_cronometro', models.DateField(verbose_name='Data do cronômetro')), + ('tipo', models.CharField(max_length=1, verbose_name='Tipo Cronômetro', choices=[('A', 'Aparte'), ('D', 'Discurso'), ('O', 'Ordem do dia')])), ], ), migrations.CreateModel( name='Painel', fields=[ - ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)), - ('abrir', models.PositiveIntegerField(verbose_name='Abrir painel', default=0)), - ('fechar', models.PositiveIntegerField(verbose_name='Fechar painel', default=1)), + ('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)), + ('aberto', models.BooleanField(default=False, verbose_name='Abrir painel')), ('data_painel', models.DateField(verbose_name='Data painel')), ('mostrar', models.CharField(max_length=1, choices=[('C', 'Completo'), ('P', 'Parlamentares'), ('V', 'Votação'), ('M', 'Mensagem')], default='C')), ], diff --git a/painel/migrations/0002_auto_20150908_1818.py b/painel/migrations/0002_auto_20150908_1818.py deleted file mode 100644 index 9c4f07f65..000000000 --- a/painel/migrations/0002_auto_20150908_1818.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('painel', '0001_initial'), - ] - - operations = [ - migrations.RemoveField( - model_name='painel', - name='abrir', - ), - migrations.RemoveField( - model_name='painel', - name='fechar', - ), - migrations.AddField( - model_name='painel', - name='aberto', - field=models.BooleanField(verbose_name='Abrir painel', default=False), - ), - ] diff --git a/painel/migrations/0003_cronometro_counter.py b/painel/migrations/0003_cronometro_counter.py deleted file mode 100644 index a59968b8e..000000000 --- a/painel/migrations/0003_cronometro_counter.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('painel', '0002_auto_20150908_1818'), - ] - - operations = [ - migrations.AddField( - model_name='cronometro', - name='counter', - field=models.PositiveIntegerField(default=0), - ), - ] diff --git a/painel/migrations/0004_auto_20150908_1858.py b/painel/migrations/0004_auto_20150908_1858.py deleted file mode 100644 index 388278b30..000000000 --- a/painel/migrations/0004_auto_20150908_1858.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('painel', '0003_cronometro_counter'), - ] - - operations = [ - migrations.RemoveField( - model_name='cronometro', - name='counter', - ), - migrations.RemoveField( - model_name='cronometro', - name='reset', - ), - migrations.RemoveField( - model_name='cronometro', - name='start', - ), - migrations.RemoveField( - model_name='cronometro', - name='stop', - ), - migrations.AddField( - model_name='cronometro', - name='status', - field=models.CharField(max_length=1, verbose_name='Status do cronômetro', choices=[('I', 'Start'), ('R', 'Reset'), ('S', 'Stop')], default='S'), - ), - migrations.AddField( - model_name='cronometro', - name='time', - field=models.FloatField(verbose_name='Start time', default=0), - ), - migrations.AlterField( - model_name='cronometro', - name='data_painel', - field=models.DateField(verbose_name='Data do cronômetro'), - ), - ] diff --git a/painel/migrations/0005_auto_20150909_1414.py b/painel/migrations/0005_auto_20150909_1414.py deleted file mode 100644 index 4e1254ec1..000000000 --- a/painel/migrations/0005_auto_20150909_1414.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('painel', '0004_auto_20150908_1858'), - ] - - operations = [ - migrations.RenameField( - model_name='cronometro', - old_name='data_painel', - new_name='data_cronometro', - ), - migrations.RemoveField( - model_name='cronometro', - name='time', - ), - ]