@ -1,3 +1,4 @@
from django.core import management
from django.core.management.base import BaseCommand
from sapl.legacy import migration
@ -17,4 +18,5 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
management.call_command('migrate')
migration.migrate(interativo=not options['force'])
@ -14,11 +14,6 @@ echo "########################################" | tee -a $LOG
echo >> $LOG
echo "--- DJANGO MIGRATE ---" | tee -a $LOG
DATABASE_NAME=$1 ./manage.py migrate --settings sapl.legacy_migration_settings
echo "--- MIGRACAO DE DADOS ---" | tee -a $LOG
DATABASE_NAME=$1 ./manage.py migracao_25_31 -f --settings sapl.legacy_migration_settings |& tee -a $LOG