Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: 14041 Add migration to fix the size of the desc field.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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,39 @@ | ||
<?php | ||
/** | ||
* Copyright 2014-2015 Horde LLC (http://www.horde.org/) | ||
* | ||
* See the enclosed file COPYING for license information (GPL). If you | ||
* did not receive this file, see http://www.horde.org/licenses/gpl. | ||
* | ||
* @author Michael J Rubinsky <mrubinsk@horde.org> | ||
* @category Horde | ||
* @license http://www.horde.org/licenses/gpl GPL | ||
* @package Mnemo | ||
*/ | ||
|
||
/** | ||
* Fixes the length on the memo_desc column. | ||
* | ||
* @author Michael J Rubinsky <mrubinsk@horde.org> | ||
* @category Horde | ||
* @license http://www.horde.org/licenses/gpl GPL | ||
* @package Mnemo | ||
*/ | ||
class MnemoFixDescSize extends Horde_Db_Migration_Base | ||
{ | ||
/** | ||
* Upgrade. | ||
*/ | ||
public function up() | ||
{ | ||
$t->column('memo_desc', 'string', array('limit' => 255, 'null' => false)); | ||
} | ||
|
||
/** | ||
* Downgrade | ||
*/ | ||
public function down() | ||
{ | ||
$t->column('memo_desc', 'string', array('limit' => 64, 'null' => false)); | ||
} | ||
} |