forked from GNUsocial/gnu-social
Set default value of datetime columns to CURRENT_TIMESTAMP
This resolves an issue with MySQL 5.7 where the default SQL_MODE is set to disallow zero dates (i.e. '0000-00-00 00:00:00') Fixed thanks to Francis and Normandy from postActiv.
This commit is contained in:
@@ -18,8 +18,8 @@ create table status_network (
|
||||
|
||||
tags text comment 'site meta-info tags (pipe-separated)',
|
||||
|
||||
created datetime not null comment 'date this record was created',
|
||||
modified timestamp comment 'date this record was modified'
|
||||
created datetime not null comment 'date this record was created' default now(),
|
||||
modified timestamp comment 'date this record was modified' default now()
|
||||
|
||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
|
Reference in New Issue
Block a user