|
|
@@ -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');
|
|
|
- });
|
|
|
- }
|
|
|
-}
|