Skip to content
Snippets Groups Projects
Commit 09a27654 authored by Peter Rotich's avatar Peter Rotich
Browse files

Fix team/group dates.

parent 5f67a41a
No related branches found
No related tags found
No related merge requests found
...@@ -15,13 +15,15 @@ CREATE TABLE `%TABLE_PREFIX%group_dept_access` ( ...@@ -15,13 +15,15 @@ CREATE TABLE `%TABLE_PREFIX%group_dept_access` (
ALTER TABLE `%TABLE_PREFIX%department` ALTER TABLE `%TABLE_PREFIX%department`
ADD `group_membership` tinyint( 1 ) unsigned NOT NULL DEFAULT '0' AFTER `ispublic`; ADD `group_membership` tinyint( 1 ) unsigned NOT NULL DEFAULT '0' AFTER `ispublic`;
-- Fix teams create date -- Fix teams dates...
UPDATE `%TABLE_PREFIX%team` UPDATE `%TABLE_PREFIX%team`
SET `created`=IFNULL(`created`, IFNULL(`updated`, NOW())), `updated`=IFNULL(`updated`, NOW()); SET `created`=IF(TO_DAYS(`created`), `created`, IF(TO_DAYS(`updated`), `updated`, NOW())),
`updated`=IF(TO_DAYS(`updated`), `updated`, NOW());
-- Fix groups dates... -- Fix groups dates...
UPDATE `%TABLE_PREFIX%groups` UPDATE `%TABLE_PREFIX%groups`
SET `created`=IFNULL(`created`, IFNULL(`updated`, NOW())), `updated`=IFNULL(`updated`, NOW()); SET `created`=IF(TO_DAYS(`created`), `created`, IF(TO_DAYS(`updated`), `updated`, NOW())),
`updated`=IF(TO_DAYS(`updated`), `updated`, NOW());
-- Finished with patch -- Finished with patch
UPDATE `%TABLE_PREFIX%config` UPDATE `%TABLE_PREFIX%config`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment