surfrock66 / torque

A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
Other
43 stars 23 forks source link

db_upgrade.php #28

Closed LeoRX closed 5 years ago

LeoRX commented 5 years ago

Hi,.. Apologies in advance as I'm not very good with php or mysql. after running db_upgrade it modified my tables to raw_logs_test_2019_04 from this line in db_upgrade.php.

$new_table_name = "{$db_table}test{$suffix}";

Should it be $new_table_name = "{$dbtable}{$suffix}" ?

Cheers

surfrock66 commented 5 years ago

Yes you're right, that was left in from my internal testing, lemme push an update.

surfrock66 commented 5 years ago

Push committed, should be fixed.