From 14eb6b387b827f18c574b34eb1af2525640082bb Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 14 Feb 2019 12:46:09 -0800 Subject: [PATCH] Possible fix for #6710 - explicitly make auto_increment_prefix nullable (#6716) * Possible fix for #6710 - explicitly make auto_increment_prefix nullable * Added migration to make auto_increment_prefix explicitly nullable --- ...14_11_20_224421_add_prefix_to_settings.php | 2 +- ...ange_auto_increment_prefix_to_nullable.php | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php diff --git a/database/migrations/2014_11_20_224421_add_prefix_to_settings.php b/database/migrations/2014_11_20_224421_add_prefix_to_settings.php index dff67400b2..e325b3c55e 100644 --- a/database/migrations/2014_11_20_224421_add_prefix_to_settings.php +++ b/database/migrations/2014_11_20_224421_add_prefix_to_settings.php @@ -15,7 +15,7 @@ class AddPrefixToSettings extends Migration { // Schema::table('settings', function(Blueprint $table) { - $table->string('auto_increment_prefix')->default(0); + $table->string('auto_increment_prefix')->nullable()->default(NULL); }); } 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 new file mode 100644 index 0000000000..a76b0ec655 --- /dev/null +++ b/database/migrations/2019_02_14_154310_change_auto_increment_prefix_to_nullable.php @@ -0,0 +1,30 @@ +boolean('auto_increment_prefix')->nullable()->default(null)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}