share_parents field migration for sql and sqlng share drivers
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 26 Jan 2011 15:22:29 +0000 (10:22 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 26 Jan 2011 16:10:23 +0000 (11:10 -0500)
12 files changed:
ingo/migration/4_ingo_upgrade_sqlhierarchical.php [new file with mode: 0644]
ingo/migration/5_ingo_upgrade_sqlnghierarchical.php [new file with mode: 0644]
kronolith/migration/16_kronolith_upgrade_sqlhierarchical.php [new file with mode: 0644]
kronolith/migration/17_kronolith_upgrade_sqlnghierarchical.php [new file with mode: 0644]
mnemo/migration/4_mnemo_upgrade_sqlhierarchical.php [new file with mode: 0644]
mnemo/migration/5_mnemo_upgrade_sqlnghierarchical.php [new file with mode: 0644]
nag/migration/7_nag_upgrade_sqlhierarchical.php [new file with mode: 0644]
nag/migration/8_nag_upgrade_sqlnghierarchical.php [new file with mode: 0644]
turba/migration/4_turba_upgrade_sqlhierarchical.php [new file with mode: 0644]
turba/migration/5_turba_upgrade_sqlnghierarchical.php [new file with mode: 0644]
whups/migration/4_whups_upgrade_sqlhierarchical.php [new file with mode: 0644]
whups/migration/5_whups_upgrade_sqlnghierarchical.php [new file with mode: 0644]

diff --git a/ingo/migration/4_ingo_upgrade_sqlhierarchical.php b/ingo/migration/4_ingo_upgrade_sqlhierarchical.php
new file mode 100644 (file)
index 0000000..c2a8e76
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..5b07a07
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..bca7716
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..0d52b27
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..c7617dc
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..bd7899d
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..702de23
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..63d2d75
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..156b4be
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..ed3662b
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..d65a5dc
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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 (file)
index 0000000..fca2a25
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @author   Michael J. Rubinsky <mrubinsk@horde.org>
+ * @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 <mrubinsk@horde.org>
+ * @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');
+    }
+
+}