Fixed migration

This commit is contained in:
snipe 2019-02-16 11:42:35 -08:00
parent 0242b3ec74
commit b91ba47b0e
2 changed files with 31 additions and 1 deletions

View file

@ -14,7 +14,7 @@ class ChangeAutoIncrementPrefixToNullable extends Migration
public function up()
{
Schema::table('settings', function (Blueprint $table) {
$table->boolean('auto_increment_prefix')->nullable()->default(null)->change();
$table->string('auto_increment_prefix')->nullable()->default(null)->change();
});
}

View file

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