mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use DNS Location Record for Location (#12409)
* Use DNS Location Record for Location * . * . * . * grammar fix * dns class * code changes * composer update * add missing composer.lock update * reposition Location record parsing * composer update * default yes ; change lookup order * merge master * . * move Location Record Parser to Model Level * . * fix location record code * Location precedence with tests Setting from UI disables all lookups * update composer.lock and mix-manifest.json * Style fixes Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class LocationAddFixedCoordinatesFlag extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('locations', function (Blueprint $table) {
|
||||
$table->boolean('fixed_coordinates')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('locations', function (Blueprint $table) {
|
||||
$table->dropColumn('fixed_coordinates');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user