Skip to content

A free open source IT asset/license management system

Fixed #6725 - revert auro_increment_prefix to string

sniped687e1d76267
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 @@
+<?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()
+ {
+ //
+ }
+}