1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
Stefan Pratter 398ff357b1 Support 202311 (#1506)
Add a "flag bad data" button on various places #170
Add a "last synced at $date" to beta.peeringdb.com #410
Improve RIR Update Procedure #1303
Only indicate availability of DC voltage for facilities #1341
Clarifying the Network Type field #1357
Changing ASN field on "Add Network" to be numbers only #1430
Update website to take advantage of wider screen and improve mobile device support #1463
v2 search - not able to find IX participant based on IP #1469
v2 search not able to find organization and network - Marconi Solutions Srls #1476
Improve RIR Update Procedure #1280

Co-authored-by: 20C <code@20c.com>
2024-01-15 14:12:00 -06:00

708 B

On beta environment instances it is possible to display the date when the database was last synced from the production environment. This is useful to know if the data in the beta environment is up to date with the production environment.

In order to display the correct date, either set the environment variable DATABASE_LAST_SYNC to a date that follows the iso8601 format (e.g., 2024-01-01T00:00:00) or run the following SQL query as part of your deploy process.

DELETE FROM peeringdb_settings WHERE setting="DATABASE_LAST_SYNC";
INSERT INTO peeringdb_settings (setting, value_str, value_bool)
VALUES ("DATABASE_LAST_SYNC",
        DATE_FORMAT(NOW(), '%Y-%m-%dT%H:%i:%S'),
        false);