Hi All
I’m not entirely sure when this error first appeared as I only noticed it by chance, but everything seems to be working as it should. What could cause this and how do I fix it?
librenms@librenms:~$ ./daily.sh
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@librenms:~$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.43-38-g9f0afa2 |
DB Schema | 265 |
PHP | 7.0.30-0ubuntu0.16.04.1 |
MySQL | 10.0.36-MariaDB-0ubuntu0.16.04.1 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (notifications/datetime)
[FAIL] Database: incorrect column (users/created_at)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on IRC or the community site (https://t.libren.ms/5gscd):
[FIX] Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE notifications
CHANGE datetime
datetime
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:00’ ;
ALTER TABLE users
CHANGE created_at
created_at
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:01’ ;