Change order number to string in components table

This commit is contained in:
snipe 2016-10-19 14:59:28 -07:00
parent b41883c125
commit d7434797ec

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixOrderNumberInComponentsToString extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('components', function ($table) {
$table->string('order_number')->nullable()->default(null)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('components', function ($table) {
$table->integer('order_number')->nullable()->default(null)->change();
});
}
}