[Vtigercrm-developers] Why include a SQL file when we don't use it?

Jeff Kowalczyk jtk at yahoo.com
Tue Feb 21 17:34:14 PST 2006


Mike Crowe wrote:
> I refer you to my post: 
> http://forums.vtiger.com/viewtopic.php?t=4535&highlight=
> 
> To install from command line:
> 	php install.php
> where install.php is:
> <?
> require_once('config.php');
> require_once('connection.php');
> require_once('adodb/adodb.inc.php');
> require_once('adodb/adodb-xmlschema.inc.php');
> 
> $conn = ADONewConnection($dbconfig['db_type']);
> $conn->Connect($dbconfig['db_host_name'],$dbconfig['db_user_name'],
> $dbconfig['db_password'],$dbconfig['db_name']);
> $schema = new adoSchema( $conn );
> $schema->SetUpgradeMethod('ALTER');
> $schema->ExecuteInline(true);
> $sql = $schema->ParseSchema( "adodb/DatabaseSchema.xml" );
> ?>
> 
> To create the XML file, all it takes is:
> $schema = new adoSchema( $conn );
> $t = $schema->ExtractSchema(true);
> (now write $t to the xml file)

Thanks Mike. Can you make a trac ticket with this snippet and specifics on
where you'd like to see this fit into the install steps?

(BTW, I moved adodb/DatabaseSchema.xml to schema/DatabaseSchema.xml)
http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/4






More information about the vtigercrm-developers mailing list