Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: 14353 Make calendar descriptions a text field.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
kronolith/migration/27_kronolith_upgrade_description_totext.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,41 @@ | ||
<?php | ||
/** | ||
* Copyright 2014-2016 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 Ralf Lang <lang@b1-systems.de> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
* @category Horde | ||
* @license http://www.horde.org/licenses/gpl GPL | ||
* @package Kronolith | ||
*/ | ||
|
||
/** | ||
* Fixes the type of the parents column. | ||
* | ||
* @author Ralf Lang <lang@b1-systems.de> | ||
* @category Horde | ||
* @license http://www.horde.org/licenses/gpl GPL | ||
* @package Kronolith | ||
*/ | ||
class KronolithUpgradeDescToText extends Horde_Db_Migration_Base | ||
{ | ||
/** | ||
* Upgrade. | ||
*/ | ||
public function up() | ||
{ | ||
$this->changeColumn('kronolith_shares', 'attribute_desc', 'text'); | ||
$this->changeColumn('kronolith_sharesng', 'attribute_desc', 'text'); | ||
} | ||
|
||
/** | ||
* Downgrade | ||
*/ | ||
public function down() | ||
{ | ||
$this->changeColumn('kronolith_shares', 'attribute_desc', 'string', array('limit' => 255)); | ||
$this->changeColumn('kronolith_sharesng', 'attribute_desc', 'string', array('limit' => 255)); | ||
} | ||
} |
Please fix author and copyright year.