From 19d44d674635b03ce9c0c0a6801afbe6ce68ebbe Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Thu, 29 Sep 2016 12:01:19 -0300 Subject: [PATCH] Adiciona comando migracao_25_31 ao manage.py Signed-off-by: Luciano Almeida --- sapl/legacy/management/__init__.py | 0 sapl/legacy/management/commands/__init__.py | 0 sapl/legacy/management/commands/migracao_25_31.py | 9 +++++++++ 3 files changed, 9 insertions(+) create mode 100644 sapl/legacy/management/__init__.py create mode 100644 sapl/legacy/management/commands/__init__.py create mode 100644 sapl/legacy/management/commands/migracao_25_31.py diff --git a/sapl/legacy/management/__init__.py b/sapl/legacy/management/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/sapl/legacy/management/commands/__init__.py b/sapl/legacy/management/commands/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/sapl/legacy/management/commands/migracao_25_31.py b/sapl/legacy/management/commands/migracao_25_31.py new file mode 100644 index 000000000..199075d44 --- /dev/null +++ b/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()