Skip to content

Commit

Permalink
Remove task_parent column NOT NULL constraint from Horde 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Dec 13, 2016
1 parent 411ffa5 commit daa981e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
38 changes: 38 additions & 0 deletions nag/migration/17_nag_upgrade_task_parent.php
@@ -0,0 +1,38 @@
<?php
/**
* Copyright 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 Jan Schneider <jan@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/gpl GPL
* @package Nag
*/

/**
* Removes task_parent column NOT NULL constraint because it was set in Horde 3.
*
* @author Jan Schneider <jan@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/gpl GPL
* @package Nag
*/
class NagUpgradeTaskParent extends Horde_Db_Migration_Base
{
/**
* Upgrade.
*/
public function up()
{
$this->changeColumn('nag_tasks', 'task_parent', 'string');
}

/**
* Downgrade
*/
public function down()
{
}
}
6 changes: 4 additions & 2 deletions nag/package.xml
Expand Up @@ -22,7 +22,7 @@
<email>chuck@horde.org</email>
<active>false</active>
</lead>
<date>2016-11-09</date>
<date>2016-12-13</date>
<version>
<release>5.0.0</release>
<api>5.0.0</api>
Expand Down Expand Up @@ -425,6 +425,7 @@
<file name="14_nag_upgrade_search.php" role="horde" />
<file name="15_nag_upgrade_addorganizer.php" role="horde" />
<file name="16_nag_upgrade_addactual.php" role="horde" />
<file name="17_nag_upgrade_task_parent.php" role="horde" />
</dir> <!-- /migration -->
<dir name="task">
<file name="complete.php" role="horde" />
Expand Down Expand Up @@ -964,6 +965,7 @@
<install as="nag/migration/14_nag_upgrade_search.php" name="migration/14_nag_upgrade_search.php" />
<install as="nag/migration/15_nag_upgrade_addorganizer.php" name="migration/15_nag_upgrade_addorganizer.php" />
<install as="nag/migration/16_nag_upgrade_addactual.php" name="migration/16_nag_upgrade_addactual.php" />
<install as="nag/migration/17_nag_upgrade_task_parent.php" name="migration/17_nag_upgrade_task_parent.php" />
<install as="nag/task/complete.php" name="task/complete.php" />
<install as="nag/task/save.php" name="task/save.php" />
<install as="nag/tasklists/create.php" name="tasklists/create.php" />
Expand Down Expand Up @@ -1809,7 +1811,7 @@
<stability>
<release>beta</release>
<api>beta</api></stability>
<date>2016-11-09</date>
<date>2016-12-13</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [jan] Add support for monthly recurrence on last weekday (Request #1922).
Expand Down

0 comments on commit daa981e

Please sign in to comment.