Skip to content

Commit

Permalink
fix(install): consistency between datetime and timestamp type in DB
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 23, 2021
1 parent 52a5e65 commit 270ee38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/mysql/plugin_formcreator_empty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_formanswers` (
`requester_id` int(11) DEFAULT NULL,
`users_id_validator` int(11) NOT NULL DEFAULT '0',
`groups_id_validator` int(11) NOT NULL DEFAULT '0',
`request_date` datetime NOT NULL,
`request_date` timestamp NULL DEFAULT NULL,
`status` int(11) NOT NULL DEFAULT '101',
`comment` text,
PRIMARY KEY (`id`),
Expand Down Expand Up @@ -246,8 +246,8 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_issues` (
`original_id` int(11) NOT NULL DEFAULT '0',
`sub_itemtype` varchar(100) NOT NULL DEFAULT '',
`status` varchar(255) NOT NULL DEFAULT '',
`date_creation` datetime NOT NULL,
`date_mod` datetime NOT NULL,
`date_creation` timestamp NULL DEFAULT NULL,
`date_mod` timestamp NULL DEFAULT NULL,
`entities_id` int(11) NOT NULL DEFAULT '0',
`is_recursive` tinyint(1) NOT NULL DEFAULT '0',
`requester_id` int(11) NOT NULL DEFAULT '0',
Expand Down

0 comments on commit 270ee38

Please sign in to comment.