1<?php 2/** 3 * @author Michael J. Rubinsky <mrubinsk@horde.org> 4 * @category Horde 5 * @license http://www.horde.org/licenses/gpl GPL 6 * @package Whups 7 */ 8 9require_once __DIR__ . '/../lib/Whups.php'; 10 11/** 12 * Add hierarchcal related columns to the legacy sql share driver 13 * 14 * Copyright 2011-2017 Horde LLC (http://www.horde.org/) 15 * 16 * See the enclosed file COPYING for license information (GPL). If you 17 * did not receive this file, see http://www.horde.org/licenses/gpl. 18 * 19 * @author Michael J. Rubinsky <mrubinsk@horde.org> 20 * @category Horde 21 * @license http://www.horde.org/licenses/gpl GPL 22 * @package Whups 23 */ 24class WhupsUpgradeSqlnghierarchical extends Horde_Db_Migration_Base 25{ 26 /** 27 * Upgrade. 28 */ 29 public function up() 30 { 31 $this->addColumn('whups_sharesng', 'share_parents', 'text'); 32 } 33 34 /** 35 * Downgrade 36 */ 37 public function down() 38 { 39 $this->removeColumn('whups_sharesng', 'share_parents'); 40 } 41 42} 43