diff --git a/framework/Group/migration/Horde/Group/3_horde_group_upgrade_null_parents.php b/framework/Group/migration/Horde/Group/3_horde_group_upgrade_null_parents.php new file mode 100644 index 00000000000..a19e6108ca6 --- /dev/null +++ b/framework/Group/migration/Horde/Group/3_horde_group_upgrade_null_parents.php @@ -0,0 +1,20 @@ +changeColumn('horde_groups', 'group_parents', 'string', array('limit' => 255)); + } + + /** + * Downgrade + */ + public function down() + { + $this->changeColumn('horde_groups', 'group_parents', 'string', array('limit' => 255, 'null' => false)); + } + +} \ No newline at end of file diff --git a/framework/Group/package.xml b/framework/Group/package.xml index 73e6029bfb4..aa8cb1cbda2 100644 --- a/framework/Group/package.xml +++ b/framework/Group/package.xml @@ -17,8 +17,7 @@ chuck@horde.org yes - 2013-03-05 - + 2014-01-07 2.0.3 1.0.0 @@ -57,6 +56,7 @@ + @@ -72,6 +72,7 @@ + @@ -146,6 +147,7 @@ + @@ -156,6 +158,7 @@ + @@ -440,7 +443,7 @@ Initial release as a PEAR package stable stable - 2013-03-05 + 2014-01-07 LGPL-2.1 * diff --git a/framework/Group/test/Horde/Group/Sql/Base.php b/framework/Group/test/Horde/Group/Sql/Base.php index 0b564187806..9f7068e30ec 100644 --- a/framework/Group/test/Horde/Group/Sql/Base.php +++ b/framework/Group/test/Horde/Group/Sql/Base.php @@ -150,6 +150,10 @@ public static function setUpBeforeClass() public static function tearDownAfterClass() { if (self::$migrator) { + if (self::$db) { + self::$db->delete('DELETE FROM horde_groups'); + self::$db->delete('DELETE FROM horde_groups_members'); + } self::$migrator->down(); } if (self::$db) {