mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-10 14:09:06 +00:00
!81 filter view tables when not set include table names
* 没配置表时过滤视图表 * version for 1.6.5
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
package com.gitee.dbswitch.data.service;
|
package com.gitee.dbswitch.data.service;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.gitee.dbswitch.common.type.DBTableType;
|
||||||
import com.gitee.dbswitch.core.model.TableDescription;
|
import com.gitee.dbswitch.core.model.TableDescription;
|
||||||
import com.gitee.dbswitch.core.service.IMetaDataService;
|
import com.gitee.dbswitch.core.service.IMetaDataService;
|
||||||
import com.gitee.dbswitch.core.service.impl.MigrationMetaDataServiceImpl;
|
import com.gitee.dbswitch.core.service.impl.MigrationMetaDataServiceImpl;
|
||||||
@@ -121,6 +122,11 @@ public class MigrationService {
|
|||||||
log.warn("### Find source database table list empty for schema name is : {}", schema);
|
log.warn("### Find source database table list empty for schema name is : {}", schema);
|
||||||
} else {
|
} else {
|
||||||
for (TableDescription td : tableList) {
|
for (TableDescription td : tableList) {
|
||||||
|
// 当没有配置迁移的表是,默认为所有物理表(不含有视图表)
|
||||||
|
if (includes.isEmpty() && DBTableType.VIEW.name().equals(td.getTableType())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
String tableName = td.getTableName();
|
String tableName = td.getTableName();
|
||||||
|
|
||||||
if (useExcludeTables) {
|
if (useExcludeTables) {
|
||||||
|
Reference in New Issue
Block a user