Re: Modification in LiveUser SQL for Perm and Auth

From: Date: Thu, 10 Oct 2002 14:00:30 +0000
Subject: Re: Modification in LiveUser SQL for Perm and Auth
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10002@lists.php.net to get a copy of this message
<wolff@21st.de> wrote : > Am Thu, 10 Oct 2002 15:22:49 +0200 schrieb Bertrand Mansion > <bmansion@mamasam.com>: > >> Hi again, >> >> I forgot to mention one more point about date/time fields. >> I have noticed that all database support int() fields while they don't >> support datetime fields the same way. For instance, in MySQL, you will use >> DATE_FORMAT() while in Oracle, you use TO_CHAR() in your queries. >> >> Then, I suggest we use regular unix timestamps as they are very well handled >> by PHP and its date() function. The drawback is that, as raw data, they are >> not very much readable except if you naturally know how many seconds have >> spent since 1 january 1970 :) >> >> Any opinions ? > > Actually, we´ve had regular timestamps at first, but then again decided > to do things the MDB way... but the more I think about it, the more I > think we should let an MDB container have its own database model, as we > won´t have this kind of portability with DB, so we should stick to the > lowest common denominator with the DB container... Not having used MDB yet, I didn't know database schemas would suffer from it that much. IMO, we should try to have at least 2 DB schemas, starting with one for DB and then one for MDB. I am pretty sure that in the end, we will have one schema for each DB, though. Still, I think we need some naming conventions for DB schemas in PEAR, these will make things easier for developers. Bertrand Mansion Mamasam

« previous php.pear.dev (#10002) next »