durong лет назад: 5
Родитель
Сommit
4897104c17

+ 16 - 0
app/Models/BehaviorOperationLog.php

@@ -0,0 +1,16 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: durong
+ * Date: 2019/6/13
+ * Time: 15:22
+ */
+
+namespace App\Models;
+use Illuminate\Database\Eloquent\Model;
+
+class BehaviorOperationLog extends Model
+{
+    protected $table = 'behavior_operation_log';
+    protected $guarded = [];
+}

+ 33 - 0
database/migrations/2019_06_13_160051_update_behavior_id_to_behavior_operation_log_table.php

@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class UpdateBehaviorIdToBehaviorOperationLogTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('behavior_operation_log', function (Blueprint $table) {
+            $table->string('behavior_id')->nullable()->change();
+            $table->text('content')->nullable()->change();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('behavior_operation_log', function (Blueprint $table) {
+            //
+        });
+    }
+}