Remove caching on Zone, fix cockroach cannot do like on integers
This commit is contained in:
parent
c7e6bb2575
commit
d930c410dc
@ -103,7 +103,7 @@ class HomeController extends Controller
|
||||
->when($host_id,function($q,$host_id) { return $q->where('region_id',$host_id); })
|
||||
->when($host_id,function($q,$host_id) { return $q->orWhere('host_id',$host_id); });
|
||||
})
|
||||
->when($node_id,function($q,$node_id) { return $q->where('node_id','ilike','%'.$node_id.'%'); });
|
||||
->when($node_id,function($q,$node_id) { return $q->where('node_id',$node_id); });
|
||||
})
|
||||
->orWhere('systems.name','ilike','%'.$request->query('term').'%')
|
||||
->orWhere('systems.sysop','ilike','%'.$request->query('term').'%')
|
||||
|
@ -8,7 +8,7 @@ use App\Traits\{QueryCacheableConfig,ScopeActive};
|
||||
|
||||
class Zone extends Model
|
||||
{
|
||||
use ScopeActive,QueryCacheableConfig;
|
||||
use ScopeActive;
|
||||
|
||||
/* SCOPES */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user