Re: installer (wa: Re: new release very urgent)
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
On 13/06/2005, at 10:07 PM, Lukas Smith wrote: > Dan Rossi wrote: > >> Also maybe an MDB2_Schema question , but how to i prevent it creating >> the old schema files, i have to delete these usually to run the >> installer again. I think it tries and runs an update if the .old >> files are there ? > > The creation of ".old" files is currently forced by the installer. Its > optional in the MDB2_Schema manager. I suggest you just add an > unlink() after the mehod calls. The ".old" files are very important to > be able to easily update the database schema later. > I noticed some slight differences between the LiveAdmin config and the installer config, I am creating a baseclass which handles the one config, can the installer use this at all ?? I am doing this and $auth is returning as null $auth =& LiveUser::authFactory($this->conf['authContainers'][0], 'foo'); Var_Dump($auth); exit; $result = LiveUser_Misc_Schema_Install::generateSchema($auth, 'schema/auth_schema.xml'); var_dump($result); $this->conf = array( 'autoInit' => false, 'session' => array( 'name' => 'PHPSESSION', 'varname' => 'ludata' ), 'cookie' => array( 'name' => 'loginInfo', 'path' => null, 'domain' => null, 'secure' => false, 'lifetime' => 30, 'secret' => 'mysecretkey', 'savedir' => '.', ), 'login' => array( 'force' => false, ), 'logout' => array( 'destroy' => true, ), 'authContainers' => array( 'DB_Local' => array( 'type' => 'MDB2', 'loginTimeout' => 0, 'expireTime' => 3600, 'idleTime' => 1800, 'allowDuplicateHandles' => true, // 'passwordEncryptionMode' => 'MD5', 'storage' => array( 'connection' => $this->_db, 'dsn' => $this->settings['LiveUser']['dsn'], 'prefix' => 'liveuser_', 'tables' => array( 'users' => array( 'fields' => array( 'name' => false, 'email' => false, ), ), ), 'fields' => array( 'name' => 'text', 'email' => 'text', ), 'alias' => array( 'name' => 'name', 'email' => 'email' ), // 'force_seq' => false ), ) ), 'permContainer' => array( 'type' => 'Complex', 'alias' => array(), 'storage' => array( 'MDB2' => array( 'connection' => $this->_db, 'dsn' => $this->settings['LiveUser']['dsn'], 'prefix' => 'liveuser_', 'tables' => array(), 'fields' => array(), 'alias' => array(), // 'force_seq' => false ), ), ), );