mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
77c531527c
* Apply fixes from StyleCI * Disable style check
34 lines
716 B
PHP
34 lines
716 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateLocationsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('locations', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('location')->unique();
|
|
$table->float('lat', 10, 6)->nullable();
|
|
$table->float('lng', 10, 6)->nullable();
|
|
$table->dateTime('timestamp');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('locations');
|
|
}
|
|
}
|