mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:15:36 +00:00
Merge branch 'main' into next
This commit is contained in:
commit
2b7c7c4887
@ -19,6 +19,9 @@ export function beforeDestroyForeignKey(db: Database) {
|
||||
|
||||
const fieldKeys = [];
|
||||
const collection = db.getCollection(collectionName);
|
||||
if (!collection) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const [, field] of collection.fields) {
|
||||
const fieldKey = field.options?.key;
|
||||
|
Loading…
Reference in New Issue
Block a user