mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:46:45 +00:00
fix(database) unique for collectionName + fieldName
This commit is contained in:
parent
cf89f4f428
commit
acb2e02c11
@ -9,6 +9,12 @@ export default {
|
|||||||
name: 'sort',
|
name: 'sort',
|
||||||
scopeKey: 'parentKey',
|
scopeKey: 'parentKey',
|
||||||
},
|
},
|
||||||
|
indexes: [
|
||||||
|
{
|
||||||
|
type: 'UNIQUE',
|
||||||
|
fields: ['collectionName', 'name'],
|
||||||
|
},
|
||||||
|
],
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
type: 'uid',
|
type: 'uid',
|
||||||
|
Loading…
Reference in New Issue
Block a user