LD 5 лет назад
Родитель
Сommit
e68c1e0eef

+ 0 - 44
database/migrations/2021_05_11_101611_exception_message_able_null_order_packages_table.php

@@ -1,44 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-class ExceptionMessageAbleNullOrderPackagesTable extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->dropIndex('order_packages_logistic_number_unique');
-        });
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->string('exception_message')->nullable()->change();
-        });
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->unique('logistic_number','order_packages_logistic_number_unique');
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->dropIndex('order_packages_logistic_number_unique');
-        });
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->string('exception_message')->nullable(false)->change();
-        });
-        Schema::table('order_packages', function (Blueprint $table) {
-            $table->unique('logistic_number','order_packages_logistic_number_unique');
-        });
-    }
-}