fix: 修复sqlite无法执行truncate的问题 (#372)
This commit is contained in:
parent
4b7f48a40e
commit
bf22838562
|
@ -102,5 +102,5 @@ func (s OperationLogService) Delete(operationLogIds []uint) error {
|
||||||
|
|
||||||
// Clean 清空日志
|
// Clean 清空日志
|
||||||
func (s OperationLogService) Clean() error {
|
func (s OperationLogService) Clean() error {
|
||||||
return common.DB.Exec("TRUNCATE TABLE operation_logs").Error
|
return common.DB.Exec("DELETE FROM operation_logs").Error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue