From b91ba47b0e7583ded696702d544b64f6da987c50 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 16 Feb 2019 11:42:35 -0800 Subject: [PATCH] Fixed migration --- ...ange_auto_increment_prefix_to_nullable.php | 2 +- ...6_144154_auto_increment_back_to_string.php | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2019_02_16_144154_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_144154_auto_increment_back_to_string.php b/database/migrations/2019_02_16_144154_auto_increment_back_to_string.php new file mode 100644 index 0000000000..435f43ae1d --- /dev/null +++ b/database/migrations/2019_02_16_144154_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() + { + // + } +}