Browse Source

Rework Painel migrations

pull/7/head
Edward Ribeiro 9 years ago
parent
commit
718293cea4
  1. 15
      painel/migrations/0001_initial.py
  2. 27
      painel/migrations/0002_auto_20150908_1818.py
  3. 19
      painel/migrations/0003_cronometro_counter.py
  4. 45
      painel/migrations/0004_auto_20150908_1858.py
  5. 23
      painel/migrations/0005_auto_20150909_1414.py

15
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')),
],

27
painel/migrations/0002_auto_20150908_1818.py

@ -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),
),
]

19
painel/migrations/0003_cronometro_counter.py

@ -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),
),
]

45
painel/migrations/0004_auto_20150908_1858.py

@ -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'),
),
]

23
painel/migrations/0005_auto_20150909_1414.py

@ -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',
),
]
Loading…
Cancel
Save