diff --git a/upgrade.php b/upgrade.php index 95e52eee..dd9a84a1 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1619,14 +1619,14 @@ function upgrade_1824_sqlite() { function upgrade_1835_mysql() { # change default values for existing datetime fields with a 0000-00-00 default to {DATETIME} - foreach (array('admin', 'alias', 'alias_domain', 'domain', 'mailbox', 'domain_admins', 'vacation') as $table_to_change) { + foreach (array('domain_admins', 'vacation') as $table_to_change) { $table = table_by_key($table_to_change); db_query_parsed("ALTER TABLE `$table` CHANGE `created` `created` {DATETIME}"); } foreach (array('admin', 'alias', 'alias_domain', 'domain', 'mailbox') as $table_to_change) { $table = table_by_key($table_to_change); - db_query_parsed("ALTER TABLE `$table` CHANGE `modified` `modified` {DATETIME}"); + db_query_parsed("ALTER TABLE `$table` CHANGE `created` `created` {DATETIME}, CHANGE `modified` `modified` {DATETIME}"); } $table = table_by_key('log');