feat(duplicator): tableName and schema

This commit is contained in:
chenos 2023-03-20 15:40:22 +08:00
parent ca95edf295
commit ef47cac5e6

View File

@ -16,9 +16,11 @@ export default async function getDictAction(ctx, next) {
}
const item = {
name,
tableName: collection.model.tableName,
title: collection.options.title,
namespace: collection.options.namespace,
duplicator: collection.options.duplicator,
schema: collection.options.schema || process.env.DB_SCHEMA,
// columns,
};
if (!item.namespace && collectionNames.includes(name)) {