Browse Source

Merge pull request #674 from interlegis/664-comando-migracao

fix #664 Comando migracao
pull/675/head
Luciano Henrique Nunes de Almeida 8 years ago
committed by GitHub
parent
commit
79f578c01c
  1. 0
      sapl/legacy/management/__init__.py
  2. 0
      sapl/legacy/management/commands/__init__.py
  3. 9
      sapl/legacy/management/commands/migracao_25_31.py
  4. 1
      sapl/parlamentares/legacy.yaml

0
sapl/legacy/management/__init__.py

0
sapl/legacy/management/commands/__init__.py

9
sapl/legacy/management/commands/migracao_25_31.py

@ -0,0 +1,9 @@
from django.core.management.base import BaseCommand
from sapl.legacy import migration
class Command(BaseCommand):
help = u'Faz a migração de dados do SAPL 2.5 para o SAPL 3.1'
def handle(self, *args, **options):
migration.migrate()

1
sapl/parlamentares/legacy.yaml

@ -1,4 +1,5 @@
Legislatura: Legislatura:
numero: num_legislatura
data_eleicao: dat_eleicao data_eleicao: dat_eleicao
data_fim: dat_fim data_fim: dat_fim
data_inicio: dat_inicio data_inicio: dat_inicio

Loading…
Cancel
Save