mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:47:10 +00:00
fix: set null on delete
This commit is contained in:
parent
f2a3cef3cf
commit
5dae47d5f1
@ -59,6 +59,8 @@ export default class UsersPlugin extends Plugin<UserPluginConfig> {
|
||||
dataIndex: 'state.currentUser.id',
|
||||
createOnly: true,
|
||||
visible: true,
|
||||
onDelete: 'SET NULL',
|
||||
onUpdate: 'CASCADE',
|
||||
});
|
||||
collection.setField('createdBy', {
|
||||
type: 'belongsTo',
|
||||
@ -73,6 +75,8 @@ export default class UsersPlugin extends Plugin<UserPluginConfig> {
|
||||
dataType: 'integer',
|
||||
dataIndex: 'state.currentUser.id',
|
||||
visible: true,
|
||||
onDelete: 'SET NULL',
|
||||
onUpdate: 'CASCADE',
|
||||
});
|
||||
collection.setField('updatedBy', {
|
||||
type: 'belongsTo',
|
||||
|
Loading…
Reference in New Issue
Block a user