summaryrefslogtreecommitdiff
path: root/bin/import-cezar-db.sh
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
committeremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
commit8f795b1d445441daab5ffb75060a6dbf8ed0934a (patch)
tree15e55a2a7e03867ac0cccfb8303674d478510503 /bin/import-cezar-db.sh
parent655a9847513332e8e119f37f7ed95f4ab002b1a1 (diff)
Renaming scripts so that their names make sense
Diffstat (limited to 'bin/import-cezar-db.sh')
-rwxr-xr-xbin/import-cezar-db.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/bin/import-cezar-db.sh b/bin/import-cezar-db.sh
deleted file mode 100755
index 4db5261..0000000
--- a/bin/import-cezar-db.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-DBCONFIG=($(jq -r '.[]' config/import-db.json))
-mysql -h ${DBCONFIG[2]} -P ${DBCONFIG[3]} -u ${DBCONFIG[0]} --password=${DBCONFIG[1]} -e "SET foreign_key_checks = 0;
-LOAD DATA LOCAL INFILE '$1'
-REPLACE
-INTO TABLE players
-FIELDS TERMINATED BY ';' ENCLOSED BY '\"';
-SET foreign_key_checks = 1
-" ${DBCONFIG[4]}