[commits] Horde branch master updated. 10412ac76665a12d5587d3a2b5535ac799d6e469

Gunnar Wrobel p at rdus.de
Sun Dec 11 13:54:37 UTC 2011


The branch "master" has been updated.
The following is a summary of the commits.

from: b3f098af0944284d433b6dd3616824df591e4281

10412ac [gwr] Alternative API to support modified dates with SQLite as well.

-----------------------------------------------------------------------

commit 10412ac76665a12d5587d3a2b5535ac799d6e469
Author: Gunnar Wrobel <p at rdus.de>
Date:   Sun Dec 11 14:54:29 2011 +0100

    [gwr] Alternative API to support modified dates with SQLite as well.
    
    "INTERVAL" is not supported on SQLite. This made our migrations fail
    for kronolith when using a SQLite backend. The existing Horde_Db
    interval() API cannot satisfy what the SQLite date/time functions need
    to achieve effects similar to "INTERVAL".
    
    I decided to add a new function (rather than hacking the signature of
    the current interval() method). This is only a very basic stub that
    allows modifying the date by a given number of days on SQLite as well.
    
    Especially the SQLite variant of the method would still need to be
    fleshed out to cover the whole spectrum that can be achieved with the
    date/time functionality in the diffent DB. In addition some test for
    the different platforms would be good.
    
    But I lack the time for this at the moment and I think it is already a
    good start if we make the default migrations work on SQLite.

 framework/Db/lib/Horde/Db/Adapter/Base/Schema.php   |   27 +++++++++++++++++++
 framework/Db/lib/Horde/Db/Adapter/Sqlite/Schema.php |   25 +++++++++++++++++
 framework/Db/package.xml                            |   16 ++++++-----
 framework/Db/test/Horde/Db/Migration/BaseTest.php   |   22 +++++++++++++++
 4 files changed, 83 insertions(+), 7 deletions(-)

http://git.horde.org/horde-git/-/commit/10412ac76665a12d5587d3a2b5535ac799d6e469




More information about the commits mailing list