From 3b09ed0f56011128eab684373bcf27502ff4740a Mon Sep 17 00:00:00 2001 From: Daniel Alves + Rafael Manzo Date: Tue, 26 Feb 2013 14:54:12 -0300 Subject: [PATCH] [Mezuro] Foreign keys disabled for kalibro database cleaning and then enabled again --- plugins/mezuro/script/delete_all_kalibro_entries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/script/delete_all_kalibro_entries.sh b/plugins/mezuro/script/delete_all_kalibro_entries.sh index b5b7e5a..8de084f 100755 --- a/plugins/mezuro/script/delete_all_kalibro_entries.sh +++ b/plugins/mezuro/script/delete_all_kalibro_entries.sh @@ -10,7 +10,7 @@ LENGTH=${#TABLES} i=1 while [ $i -le $LENGTH ] do if [ ${#TABLES[$i]} -ne 0 ] - then mysql --force $MYSQL_PARAMS -e "delete from $DATABASE.${TABLES[$i]}" + then mysql $MYSQL_PARAMS -e "SET FOREIGN_KEY_CHECKS = 0; delete from $DATABASE.${TABLES[$i]}; SET FOREIGN_KEY_CHECKS = 1;" fi i=$(($i+1)) -done +done \ No newline at end of file -- libgit2 0.21.2