This commit is contained in:
Redkale
2016-09-18 19:50:17 +08:00
parent 02fd74f6de
commit 1e7575c7b7
3 changed files with 20 additions and 6 deletions

View File

@@ -28,7 +28,7 @@
<property name="javax.persistence.notcontain.sqltemplate" value="LOCATE(${keystr}, ${column}) = 0"/>
<!-- 复制表结构的SQL模板Redkale内置了MySQL的语句 -->
<property name="javax.persistence.tablenotexist.sqlstate" value="42S02"/>
<property name="javax.persistence.tablenotexist.sqlstates" value="42000;42S02"/>
<property name="javax.persistence.tablecopy.sqltemplate" value="CREATE TABLE ${newtable} LIKE ${oldtable}"/>
</properties>