Menu

#425 SQL Schema - invalid DATETIME default value

1.0
open
nobody
1
2020-03-04
2016-06-07
Anonymous
No
# mysql -u root -p phpipam < db/SCHEMA.sql
Enter password: 
ERROR 1067 (42000) at line 20: Invalid default value for 'lastSeen'

Modified 'lastSeen' to: '1000-01-01 00:00:00'

Reference: http://dev.mysql.com/doc/refman/5.7/en/datetime.html

The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.

Discussion

  • Anonymous

    Anonymous - 2016-06-10

    Had the same error trying to install with mysql 5.7.9.

     
  • Miha Petkovsek

    Miha Petkovsek - 2016-06-28

    Hi, replace default lastSeen value from ''0000-00-00 00:00:00 to '1000-01-01 00:00:00' or disable mysql strict mode. Will be fixed for 1.3

     
    • Anonymous

      Anonymous - 2017-12-06
      Post awaiting moderation.
  • Anonymous

    Anonymous - 2016-08-28
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2020-03-04
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.