Skip to content

Commit

Permalink
Add missing x-zip to installer, remove invalid default date values in
Browse files Browse the repository at this point in the history
schema
  • Loading branch information
stephenlawrence committed Dec 21, 2015
1 parent 763dbf3 commit c5978c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install/odm.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
category int(11) unsigned NOT NULL default '0',
owner int(11) unsigned default NULL,
realname varchar(255) NOT NULL default '',
created datetime NOT NULL default '0000-00-00 00:00:00',
created datetime NOT NULL,
description varchar(255) default NULL,
comment varchar(255) default '',
status smallint(6) default NULL,
Expand Down Expand Up @@ -180,7 +180,7 @@

$query = "CREATE TABLE {$dbprefix}log (
id int(11) unsigned NOT NULL default '0',
modified_on datetime NOT NULL default '0000-00-00 00:00:00',
modified_on datetime NOT NULL,
modified_by varchar(25) default NULL,
note text,
revision varchar(255) default NULL,
Expand Down Expand Up @@ -377,6 +377,7 @@
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'application/mspowerpoint', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'application/octet-stream', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'application/x-zip-compressed', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'application/x-zip', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'application/zip', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'image/tiff', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NUll, 'image/tif', 1);",
Expand Down
2 changes: 2 additions & 0 deletions install/upgrade_1257.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'text/richtxt', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'application/mspowerpoint', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'application/octet-stream', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'application/zip', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'application/x-zip', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'application/x-zip-compressed', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NULL, 'image/tiff', 1);",
"INSERT INTO `{$_SESSION['db_prefix']}filetypes` VALUES(NUll, 'image/tif', 1);",
Expand Down

0 comments on commit c5978c4

Please sign in to comment.