Skip to content

A free open source IT asset/license management system

Possible fix for #6710 - explicitly make auto_increment_prefix nullable

snipe18c591f993e3
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);
});
}