Legacy Method: db.xml in the AXMLS format

Any developers who have used Concrete CMS to build block types or custom packages in the past are familiar with this method. Simply create a file named db.xml in the root of the directory, and place an XML description of the database tables needed in the AXMLS format. For more information, see Creating and Working with db.xml Files.

Example

<?xml version="1.0"?>
<schema version="0.3">
    <table name="TestDatabaseTable1">
        <field name="cID" type="I" size="10">
            <KEY/>
            <DEFAULT value="0"/>
            <UNSIGNED/>
        </field>
        <field name="testBoolean" type="I1">
            <NOTNULL/>
            <DEFAULT value="0"/>
        </field>
    </table>


    <table name="TestDatabaseTable2">
        <field name="id" type="C" size="255">
            <KEY/>
            <NOTNULL/>
        </field>
        <field name="testField" type="C" size="255">
            <NOTNULL/>
        </field>
        <field name="records" type="I">
            <DEFAULT value="0"/>
            <UNSIGNED/>
        </field>
        <field name="data" type="X2">
        </field>
    </table>
</schema>