MDB: create DB from schema
| From: | Jeroen Houben | Date: | Thu, 20 Mar 2003 15:18:33 +0000 |
| Subject: | MDB: create DB from schema | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4335@lists.php.net to get a copy of this message | ||
Hi,
I tried to create a database using MDB. I first got this error:
Error: MDB Error: MDB_manager schema parse error
Then I just erased some tables from the file to see if it would handle that okay, I then got this error:
Error: MDB Error: MDB_manager error
Is there any way I can get the errors to be more descriptive?
Here's my schema file, it's just one table.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>
<name>sixnettest</name>
<create>1</create>
<table>
<name>docsections</name>
<declaration>
<field>
<name>doc_id</name>
<type>integer</type>
<notnull>1</notnull>
<default>0</default>
</field>
<field>
<name>section_id</name>
<type>integer</type>
<notnull>1</notnull>
<default>0</default>
</field>
</declaration>
</table>
</database>
- Jeroen