mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
a445b51a88
@ -39,6 +39,10 @@ class SubAppPlugin extends Plugin {
|
|||||||
subApp.db.on('beforeDefineCollection', (options) => {
|
subApp.db.on('beforeDefineCollection', (options) => {
|
||||||
const name = options.name;
|
const name = options.name;
|
||||||
|
|
||||||
|
if (name === 'roles') {
|
||||||
|
options.loadedFromCollectionManager = true;
|
||||||
|
}
|
||||||
|
|
||||||
// 共享的Collection指向主应用的 系统schema
|
// 共享的Collection指向主应用的 系统schema
|
||||||
if (sharedCollections.includes(name)) {
|
if (sharedCollections.includes(name)) {
|
||||||
options.schema = mainApp.db.options.schema || 'public';
|
options.schema = mainApp.db.options.schema || 'public';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user