Fixes #2774 - change order_number to string in components and consumables

This commit is contained in:
snipe 2016-10-14 13:12:17 -07:00
parent e85241af6a
commit 0a0006c68c

View file

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