diff --git a/src/test/resources/scripts/TableRenamePlugin/init.sql b/src/test/resources/scripts/TableRenamePlugin/init.sql index 241549d..ade459c 100644 --- a/src/test/resources/scripts/TableRenamePlugin/init.sql +++ b/src/test/resources/scripts/TableRenamePlugin/init.sql @@ -16,15 +16,19 @@ Date: 2017-06-26 17:30:13 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- --- Table structure for tb +-- Table structure for tb1 -- ---------------------------- -DROP TABLE IF EXISTS `tb`; -CREATE TABLE `tb` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '注释1', - `field1` varchar(255) DEFAULT NULL COMMENT '注释2', +DROP TABLE IF EXISTS `tb1`; +CREATE TABLE `tb1` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ); -- ---------------------------- --- Records of tb --- ---------------------------- \ No newline at end of file +-- Table structure for tb2 +-- ---------------------------- +DROP TABLE IF EXISTS `tb2`; +CREATE TABLE `tb2` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`id`) +); \ No newline at end of file diff --git a/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-like-TablePrefixPlugin.xml b/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-like-TablePrefixPlugin.xml new file mode 100644 index 0000000..f9debec --- /dev/null +++ b/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-like-TablePrefixPlugin.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
\ No newline at end of file diff --git a/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-rule1.xml b/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-rule1.xml new file mode 100644 index 0000000..899c9bb --- /dev/null +++ b/src/test/resources/scripts/TableRenamePlugin/mybatis-generator-rule1.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+
\ No newline at end of file