aurweb/support/schema/reloadtestdb.sh
Lukas Fleischer f89ba3fb6d Remove database recreation code from "support/schema/reloadtestdb.sh".
Database is being dropped and recreated in the schema, so there's no
need to do this in "reloadtestdb.sh" as well.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-02-28 09:45:29 +01:00

17 lines
323 B
Bash
Executable file

#!/bin/sh
mydir=`pwd`
if [ `basename $mydir` != "schema" ]; then
echo "you must be in the aur/support/schema directory to run this script"
exit
fi
echo "recreating database..."
mysql -uaur -paur AUR < ./aur-schema.sql
echo "loading dummy-data..."
bzcat ./dummy-data.sql.bz2 | mysql -uaur -paur AUR
echo "done."
exit