forked from science-ation/science-ation
readfile the script so we know whats happening
This commit is contained in:
parent
81e1559b8d
commit
9d60276f89
@ -49,6 +49,8 @@ if($dbcodeversion && $dbdbversion)
|
|||||||
if(file_exists("db.update.$ver.sql"))
|
if(file_exists("db.update.$ver.sql"))
|
||||||
{
|
{
|
||||||
echo "db.update.$ver.sql detected - running...\n";
|
echo "db.update.$ver.sql detected - running...\n";
|
||||||
|
readfile("db.update.$ver.sql");
|
||||||
|
echo "\n";
|
||||||
system("mysql -h$DBHOST -u$DBUSER -p$DBPASS $DBNAME <db.update.$ver.sql");
|
system("mysql -h$DBHOST -u$DBUSER -p$DBPASS $DBNAME <db.update.$ver.sql");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user