Browse Source

Retira resquícios de recriação de constraints

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/1477/head
Luciano Almeida 7 years ago
parent
commit
101184e746
  1. 4
      sapl/legacy/management/commands/recria_constraints.py
  2. 6
      sapl/legacy/scripts/migra_um_db.sh

4
sapl/legacy/management/commands/recria_constraints.py

@ -1,7 +1,5 @@
from django.core.management.base import BaseCommand
from sapl.legacy.migration import recria_constraints
class Command(BaseCommand):
@ -9,4 +7,4 @@ class Command(BaseCommand):
'migração de dados')
def handle(self, *args, **options):
recria_constraints()
pass

6
sapl/legacy/scripts/migra_um_db.sh

@ -23,9 +23,3 @@ echo "--- MIGRACAO DE DADOS ---" | tee -a $LOG
echo >> $LOG
DATABASE_NAME=$1 ./manage.py migracao_25_31 -f --settings sapl.legacy_migration_settings |& tee -a $LOG
echo >> $LOG
echo "--- RECRIANDO CONSTRAINTS ---" | tee -a $LOG
echo >> $LOG
DATABASE_NAME=$1 ./manage.py recria_constraints --settings sapl.legacy_migration_settings |& tee -a $LOG
echo >> $LOG

Loading…
Cancel
Save