Fixed #6725 - revert auro_increment_prefix to string

This was mis-migrated as boolean.

It’s essentially a duplicate migration, as it is fixed in-place on the existing migration, and then a new migratio was created to handle anyone who already upgraded.
This commit is contained in:
snipe 2019-02-16 11:37:05 -08:00
parent 6256abddf2
commit d687e1d762
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()
{
//
}
}