better way of handling gluing *.sql scripts together in import.sh

master
dtookey 4 years ago
parent 1ed99c5ef9
commit b0030323a7

@ -4,7 +4,7 @@ HOME=/home/clarity
SECRET=$(sed -n 1p ${HOME}/c)
cd ${HOME}/clarity-vitals/ || exit
cat ./src/sql/0-run-first/*.sql | mysql -u"${USER}" -p"${SECRET}" projects
awk 'FNR==1{print ""}1' ${HOME}/clarity-vitals/src/sql/0-run-first/*.sql | mysql -u"${USER}" -p"${SECRET}" projects
#just for dev. we'll use this as the proverbial scarf left on the flower pot
cd ${HOME} || exit

@ -1,5 +1,4 @@
DROP TABLE tokens;
-- noinspection SqlWithoutWhere
UPDATE users SET hash = '';
UPDATE users SET hash = '';
Loading…
Cancel
Save