Fix datatype for Availability_perc Column

This commit is contained in:
SourceDoctor
2020-06-23 01:06:49 +02:00
parent 4e6a7291a2
commit afa26d66b5
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterMetricColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('availability_perc', function (Blueprint $table) {
$table->float('availability_perc', 6, 6)->default(0.000000);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('availability_perc', function (Blueprint $table) {
$table->double('availability_perc', 6, 6)->default(0.000000);
});
}
}