From: Michael J. Rubinsky Date: Wed, 26 Jan 2011 15:22:29 +0000 (-0500) Subject: share_parents field migration for sql and sqlng share drivers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=851abd92fb82267f147c5828ca101bbd89f16f4c;p=horde.git share_parents field migration for sql and sqlng share drivers --- diff --git a/ingo/migration/4_ingo_upgrade_sqlhierarchical.php b/ingo/migration/4_ingo_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..c2a8e7611 --- /dev/null +++ b/ingo/migration/4_ingo_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ingo + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ingo + */ +class IngoUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('ingo_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('ingo_shares', 'share_parents'); + } + +} diff --git a/ingo/migration/5_ingo_upgrade_sqlnghierarchical.php b/ingo/migration/5_ingo_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..5b07a0741 --- /dev/null +++ b/ingo/migration/5_ingo_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ingo + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Ingo + */ +class IngoUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('ingo_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('ingo_sharesng', 'share_parents'); + } + +} diff --git a/kronolith/migration/16_kronolith_upgrade_sqlhierarchical.php b/kronolith/migration/16_kronolith_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..bca771676 --- /dev/null +++ b/kronolith/migration/16_kronolith_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ +class KronolithUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('kronolith_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('kronolith_shares', 'share_parents'); + } + +} diff --git a/kronolith/migration/17_kronolith_upgrade_sqlnghierarchical.php b/kronolith/migration/17_kronolith_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..0d52b27dd --- /dev/null +++ b/kronolith/migration/17_kronolith_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ +class KronolithUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('kronolith_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('kronolith_sharesng', 'share_parents'); + } + +} diff --git a/mnemo/migration/4_mnemo_upgrade_sqlhierarchical.php b/mnemo/migration/4_mnemo_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..c7617dc7c --- /dev/null +++ b/mnemo/migration/4_mnemo_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ +class MnemoUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('mnemo_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('mnemo_shares', 'share_parents'); + } + +} diff --git a/mnemo/migration/5_mnemo_upgrade_sqlnghierarchical.php b/mnemo/migration/5_mnemo_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..bd7899dd7 --- /dev/null +++ b/mnemo/migration/5_mnemo_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Kronolith + */ +class MnemoUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('mnemo_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('mnemo_sharesng', 'share_parents'); + } + +} diff --git a/nag/migration/7_nag_upgrade_sqlhierarchical.php b/nag/migration/7_nag_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..702de23f7 --- /dev/null +++ b/nag/migration/7_nag_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Nag + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Nag + */ +class NagUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('nag_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('nag_shares', 'share_parents'); + } + +} diff --git a/nag/migration/8_nag_upgrade_sqlnghierarchical.php b/nag/migration/8_nag_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..63d2d75d5 --- /dev/null +++ b/nag/migration/8_nag_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Nag + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Nag + */ +class NagUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('nag_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('nag_sharesng', 'share_parents'); + } + +} diff --git a/turba/migration/4_turba_upgrade_sqlhierarchical.php b/turba/migration/4_turba_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..156b4bef3 --- /dev/null +++ b/turba/migration/4_turba_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Turba + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Turba + */ +class TurbaUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('turba_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('turba_shares', 'share_parents'); + } + +} diff --git a/turba/migration/5_turba_upgrade_sqlnghierarchical.php b/turba/migration/5_turba_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..ed3662ba4 --- /dev/null +++ b/turba/migration/5_turba_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Turba + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Turba + */ +class TurbaUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('turba_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('turba_sharesng', 'share_parents'); + } + +} diff --git a/whups/migration/4_whups_upgrade_sqlhierarchical.php b/whups/migration/4_whups_upgrade_sqlhierarchical.php new file mode 100644 index 000000000..d65a5dc3b --- /dev/null +++ b/whups/migration/4_whups_upgrade_sqlhierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Whups + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Whups + */ +class WhupsUpgradeSqlhierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('whups_shares', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('whups_shares', 'share_parents'); + } + +} diff --git a/whups/migration/5_whups_upgrade_sqlnghierarchical.php b/whups/migration/5_whups_upgrade_sqlnghierarchical.php new file mode 100644 index 000000000..fca2a25b0 --- /dev/null +++ b/whups/migration/5_whups_upgrade_sqlnghierarchical.php @@ -0,0 +1,42 @@ + + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Whups + */ + +require_once dirname(__FILE__) . '/../lib/Kronolith.php'; + +/** + * Add hierarchcal related columns to the legacy sql share driver + * + * Copyright 2011 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (GPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. + * + * @author Michael J. Rubinsky + * @category Horde + * @license http://www.fsf.org/copyleft/gpl.html GPL + * @package Whups + */ +class WhupsUpgradeSqlnghierarchical extends Horde_Db_Migration_Base +{ + /** + * Upgrade. + */ + public function up() + { + $this->addColumn('whups_sharesng', 'share_parents','text'); + } + + /** + * Downgrade + */ + public function down() + { + $this->removeColumn('whups_sharesng', 'share_parents'); + } + +}