Added factor field ot i_o_types table.

Added seeders for i_o_types and scopes tables.
This commit is contained in:
Lukas Halbritter
2018-09-09 10:55:32 +02:00
parent b01762fdfb
commit 3c772423bb
3 changed files with 67 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddFactorFieldToIOTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('i_o_types', function (Blueprint $table) {
$table->tinyInteger('factor');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('i_o_types', function (Blueprint $table) {
$table->dropColumn('factor');
});
}
}