Browse Source

no message

kuaifan 5 năm trước cách đây
mục cha
commit
cf83c01923

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