From d687e1d762675f61e2bb11804bd654e4342d5fce Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 16 Feb 2019 11:37:05 -0800 Subject: [PATCH] Fixed #6725 - revert auro_increment_prefix to string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ...ange_auto_increment_prefix_to_nullable.php | 2 +- ...6_143518_auto_increment_back_to_string.php | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2019_02_16_143518_auto_increment_back_to_string.php diff --git a/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php b/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php index a76b0ec655..faf24747d1 100644 --- a/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php +++ b/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php @@ -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(); }); } diff --git a/database/migrations/2019_02_16_143518_auto_increment_back_to_string.php b/database/migrations/2019_02_16_143518_auto_increment_back_to_string.php new file mode 100644 index 0000000000..435f43ae1d --- /dev/null +++ b/database/migrations/2019_02_16_143518_auto_increment_back_to_string.php @@ -0,0 +1,30 @@ +string('auto_increment_prefix')->nullable()->default(null)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}