We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef2973 commit 552ecdcCopy full SHA for 552ecdc
1 file changed
adminforth/modules/configValidator.ts
@@ -618,7 +618,13 @@ export default class ConfigValidator implements IConfigValidator {
618
errors.push(`Resource "${res.resourceId}" column "${col.name}" isArray is enabled but suggestOnCreate is not an array`);
619
}
620
621
-
+ if (col.foreignResource){
622
+ if (col.foreignResource.onDelete){
623
+ if (col.foreignResource.onDelete !== 'cascade' && col.foreignResource.onDelete !== 'setNull'){
624
+ errors.push (`Wrong delete strategy you can use 'onDelete' or 'cascade'`);
625
+ }
626
627
628
if (col.foreignResource) {
629
if (!col.foreignResource.resourceId) {
630
// resourceId is absent or empty
0 commit comments