kuaifan преди 5 години
родител
ревизия
cf83c01923
променени са 1 файла, в които са добавени 32 реда и са изтрити 0 реда
  1. 32 0
      database/migrations/2020_07_20_174941_alter_pre_docs_book_table_2.php

+ 32 - 0
database/migrations/2020_07_20_174941_alter_pre_docs_book_table_2.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AlterPreDocsBookTable2 extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('docs_book', function (Blueprint $table) {
+            $table->string('role_look', 20)->after('role_edit')->nullable()->default('edit')->index('IDEX_role_look');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('docs_book', function (Blueprint $table) {
+            $table->dropColumn('role_look');
+        });
+    }
+}