Switchout DB to CockroachDB
This commit is contained in:
@@ -8,10 +8,11 @@ use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
use App\Http\Controllers\DomainController;
|
||||
use App\Traits\QueryCacheableConfig;
|
||||
|
||||
class System extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory,QueryCacheableConfig;
|
||||
|
||||
protected $dates = ['last_session'];
|
||||
|
||||
@@ -37,10 +38,7 @@ class System extends Model
|
||||
public function addresses()
|
||||
{
|
||||
return $this->hasMany(Address::class)
|
||||
->orderBy('region_id')
|
||||
->orderBy('host_id')
|
||||
->orderBy('node_id')
|
||||
->orderBy('point_id');
|
||||
->FTNorder();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user