feat(duplicator): tableName and schema
This commit is contained in:
parent
ca95edf295
commit
ef47cac5e6
@ -16,9 +16,11 @@ export default async function getDictAction(ctx, next) {
|
|||||||
}
|
}
|
||||||
const item = {
|
const item = {
|
||||||
name,
|
name,
|
||||||
|
tableName: collection.model.tableName,
|
||||||
title: collection.options.title,
|
title: collection.options.title,
|
||||||
namespace: collection.options.namespace,
|
namespace: collection.options.namespace,
|
||||||
duplicator: collection.options.duplicator,
|
duplicator: collection.options.duplicator,
|
||||||
|
schema: collection.options.schema || process.env.DB_SCHEMA,
|
||||||
// columns,
|
// columns,
|
||||||
};
|
};
|
||||||
if (!item.namespace && collectionNames.includes(name)) {
|
if (!item.namespace && collectionNames.includes(name)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user