Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (32 sloc) 1.43 KB
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<database name="bookstore-behavior" defaultIdMethod="native" package="behavior.sortable">
<table name="table11">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER" />
<column name="title" type="VARCHAR" size="100" primaryString="true" />
<behavior name="sortable" />
</table>
<table name="table12">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER" />
<column name="title" type="VARCHAR" size="100" primaryString="true" />
<column name="position" type="INTEGER" />
<behavior name="sortable">
<parameter name="rank_column" value="position" />
<parameter name="use_scope" value="true" />
<parameter name="scope_column" value="my_scope_column" />
</behavior>
</table>
<table name="fk_scope_table">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER" />
<column name="title" type="VARCHAR" size="100" primaryString="true" />
<column name="scope_id" type="INTEGER" />
<foreign-key foreignTable="table11" onDelete="setnull">
<reference local="scope_id" foreign="id" />
</foreign-key>
<column name="position" type="INTEGER" />
<behavior name="sortable">
<parameter name="rank_column" value="position" />
<parameter name="use_scope" value="true" />
<parameter name="scope_column" value="scope_id" />
</behavior>
</table>
</database>
Something went wrong with that request. Please try again.