Skip to content

Tables TIMESTAMP default value #12

Description

@atlasan

I had an issue while installing:
Timestamp columns in the database has not default value and they are not nullable.
To solve this replace all the occurrences of
TIMESTAMP NOT NULL,
with
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
in file include\modules\files.php and in file include\modules\user.php

Additionally, I had to dig into the installation process and add a call to debug when needed, in this case on include\modules\files.php Ln: 2578, where was missing, and in the chain postRestart - createUser - onUserCreated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions