我在当前的项目中使用Laravel 5.6。在请求对象的规则中,我有以下规则函数: public function rules() if ($this->input('preset') === self::NO_PRESET) {'nullable|exists:roles_presets,id', ];
} 但是,当'preset‘为null时,exists:roles_presets,id的</
我有一个Grails域类,它是Server上的相关DB表。我想要向现有的域/表中添加一个新的整数类型的属性/列jPId。下面是我的代码:
int jPId // This is the new property/column I want to add.现在,当我重新启动服务器时,我希望它在DB中创建新的整数/数字列。我是无知的,因为我不知道我错过了什么