-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allow to store files bigger than 4GiB
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
application/migrations/20170331084000_changeFileSizeBigInt.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* Omeka | ||
* | ||
* @copyright Copyright 2007-2016 Roy Rosenzweig Center for History and New Media | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU GPLv3 | ||
*/ | ||
|
||
/** | ||
* @package Omeka\Db\Migration | ||
*/ | ||
class changeFileSizeBigInt extends Omeka_Db_Migration_AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$db = $this->db; | ||
$db->query("ALTER TABLE `{$db->prefix}files` MODIFY `size` bigint unsigned NOT NULL"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters