Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
516 stars 157 forks source link

Cleaning Stats #367

Open MrDalle opened 6 years ago

MrDalle commented 6 years ago

Hey!

i want to "clean" the stats page on map.fswire.net

Any good idea how to do this?

Ysurac commented 6 years ago

You need to TRUNCATE all stats_ table and delete the last_update_stats* in config table.

 TRUNCATE TABLE stats_aircraft; TRUNCATE TABLE stats_airline; TRUNCATE TABLE stats_airport; TRUNCATE TABLE stats_callsign; TRUNCATE TABLE stats_country; TRUNCATE TABLE stats_flight; TRUNCATE TABLE stats_marine; TRUNCATE TABLE stats_marine_country; TRUNCATE TABLE stats_marine_type; TRUNCATE TABLE stats_owner; TRUNCATE TABLE stats_pilot; TRUNCATE TABLE stats_registration; TRUNCATE TABLE stats_source; TRUNCATE TABLE stats_tracker; TRUNCATE TABLE stats_tracker_country; TRUNCATE TABLE stats_tracker_type; DELETE FROM config WHERE name = 'last_update_stats'; DELETE FROM config WHERE name = 'last_update_stats_marine'; DELETE FROM config WHERE name = 'last_update_stats_tracker';