浏览代码

no message

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