[dev] [commits] Horde branch master updated. 395a6e1f5eaf894889892e2d1c58f5bb71a22188

Michael M Slusarz slusarz at horde.org
Thu Mar 24 22:49:32 UTC 2011


Quoting Jan Schneider <jan at horde.org>:

>> -----------------------------------------------------------------------
>>
>> commit 5bf5caa8503b68b0f4b218f9f8c6a3d1ae98fad4
>> Author: Michael M Slusarz <slusarz at curecanti.org>
>> Date:   Thu Mar 24 14:58:11 2011 -0600
>>
>>    These all break migrations if database doesn't exist
>>
>> framework/Vfs/migration/Horde/Vfs/1_horde_vfs_base_tables.php     |  
>>    9 +++-
>> .../Vfs/migration/Horde/Vfs/2_horde_vfs_upgrade_autoincrement.php |  
>>   11 +++-
>> 2 files changed, 15 insertions(+), 5 deletions(-)
>>
>> http://git.horde.org/horde-git/-/commit/5bf5caa8503b68b0f4b218f9f8c6a3d1ae98fad4
>
> Why and when would you run a "down" migration if you don't even have  
> a database?

You have a corrupt database/table and want to remove the table (which  
just happened to me).  There is no way to recreate the table unless  
the schema version is returned to 0, which can only be done this way.

>> -----------------------------------------------------------------------
>>
>> commit 395a6e1f5eaf894889892e2d1c58f5bb71a22188
>> Author: Michael M Slusarz <slusarz at curecanti.org>
>> Date:   Thu Mar 24 15:00:07 2011 -0600
>>
>>    Bug #9711: Fix creation of auto-increment columns in Postgresql
>>
>> framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php |    4 ++-
>> framework/Db/package.xml                                |   16  
>> ++++++++------
>> 2 files changed, 12 insertions(+), 8 deletions(-)
>>
>> http://git.horde.org/horde-git/-/commit/395a6e1f5eaf894889892e2d1c58f5bb71a22188
>
> Please create a test that fails with old and succeeds with the new version.

I just figured out how to make the unit tests work with my local DB  
configuration, so I will try to add failing tests.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list