Skip to content

Commit

Permalink
Fixes opendocman#226 - video/3gpp type
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlawrence committed Jan 29, 2016
1 parent ae8decd commit be97a9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,4 @@ INSERT INTO `odm_filetypes` VALUES(NULL, 'image/x-dwg', 1);
INSERT INTO `odm_filetypes` VALUES(NULL, 'image/x-dfx', 1);
INSERT INTO `odm_filetypes` VALUES(NULL, 'drawing/x-dwf', 1);
INSERT INTO `odm_filetypes` VALUES(NULL, 'image/svg', 1);
INSERT INTO `odm_filetypes` VALUES(NULL, 'video/3gpp', 1);
7 changes: 4 additions & 3 deletions install/odm.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$query = "DROP TABLE IF EXISTS {$dbprefix}access_log";
$stmt = $pdo->prepare($query);
$stmt->execute();

$query = "
CREATE TABLE `{$dbprefix}access_log` (
`file_id` int(11) NOT NULL,
Expand All @@ -46,7 +46,7 @@
$stmt = $pdo->prepare($query);
$stmt->execute();

// Admin table
// Admin table
$query = "DROP TABLE IF EXISTS {$dbprefix}admin";
$stmt = $pdo->prepare($query);
$stmt->execute();
Expand Down Expand Up @@ -407,7 +407,8 @@
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'image/x-dwg', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'image/x-dfx', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'drawing/x-dwf', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'image/svg', 1);"
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'image/svg', 1);",
"INSERT INTO `{$dbprefix}filetypes` VALUES(NULL, 'video/3gpp', 1);"
);
foreach ($sql_operations as $query) {
$stmt = $pdo->prepare($query);
Expand Down

0 comments on commit be97a9d

Please sign in to comment.