summaryrefslogtreecommitdiff
path: root/odb-tests/common/changelog/add-column-mysql-diff.xml
diff options
context:
space:
mode:
Diffstat (limited to 'odb-tests/common/changelog/add-column-mysql-diff.xml')
-rw-r--r--odb-tests/common/changelog/add-column-mysql-diff.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/odb-tests/common/changelog/add-column-mysql-diff.xml b/odb-tests/common/changelog/add-column-mysql-diff.xml
new file mode 100644
index 0000000..992306d
--- /dev/null
+++ b/odb-tests/common/changelog/add-column-mysql-diff.xml
@@ -0,0 +1,16 @@
+<changelog xmlns="http://www.codesynthesis.com/xmlns/odb/changelog" database="mysql" version="1">
+ <changeset version="2">
+ <alter-table name="object">
+ <add-column name="num" type="INT" null="false"/>
+ </alter-table>
+ </changeset>
+
+ <model version="1">
+ <table name="object" options="ENGINE=InnoDB" kind="object">
+ <column name="id" type="INT" null="false"/>
+ <primary-key auto="true">
+ <column name="id"/>
+ </primary-key>
+ </table>
+ </model>
+</changelog>