$options = array('create' => 0, 'name' => 'ticket'); $dsn = 'sqlite://test.sqlite'; $schema = MDB2_Schema::factory($dsn, $options); if (PEAR::isError($schema)) { echo $schema->getMessage(); } $definition = $schema->parseDatabaseDefinitionFile(dirname(__FILE__) . '/schema.xml'); if (PEAR::isError($definition)) { echo $definition->getMessage(); } else { $op = $schema->updateDatabase($definition, false, array('create' => '0', 'name' => 'ticket')); echo 'her'; } test.sqlite true true message id integer true 4 true 0 received_on timestamp true 0000-00-00 00:00:00 subject text 255 true id_pKey true id ascending