From 3bfda6c3817704cc563c935e30ccd900b50cf319 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 14 Mar 2017 19:06:05 -0300 Subject: [PATCH] =?UTF-8?q?Adiciona=20script=20para=20rodar=20shell=5Fplus?= =?UTF-8?q?=20de=20migra=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit o script usa um banco específico, passado como argumento --- sapl/legacy/scripts/shell_para_migracao.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 sapl/legacy/scripts/shell_para_migracao.sh diff --git a/sapl/legacy/scripts/shell_para_migracao.sh b/sapl/legacy/scripts/shell_para_migracao.sh new file mode 100755 index 000000000..fb0f3c6de --- /dev/null +++ b/sapl/legacy/scripts/shell_para_migracao.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Inicia um shell_plus com as configurações de migração usando um banco específico +# Uso: ./shell_para_migracao.sh + +# Rode esse script a partir da raiz do projeto + +DATABASE_NAME=$1 ./manage.py shell_plus --settings sapl.legacy_migration_settings