Skip to content

Commit

Permalink
Bug: 14353 Make calendar descriptions a text field.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 12, 2016
1 parent 807c13d commit f66d2d1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions kronolith/migration/27_kronolith_upgrade_description_totext.php
@@ -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.

Copy link
@yunosh

yunosh May 13, 2016

Member

Please fix author and copyright year.

* @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));
}
}

0 comments on commit f66d2d1

Please sign in to comment.