mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 18:05:07 +00:00
11 lines
212 B
JavaScript
11 lines
212 B
JavaScript
'use strict';
|
|
|
|
const addSchema = (tableName) => {
|
|
const schemaName = strapi.db.connection.getSchemaName();
|
|
return schemaName ? `${schemaName}.${tableName}` : tableName;
|
|
};
|
|
|
|
module.exports = {
|
|
addSchema,
|
|
};
|