zhangchangchun hace 5 años
padre
commit
4b733cfd4a

+ 1 - 1
app/Http/Controllers/UpgradeController.php

@@ -30,7 +30,7 @@ class UpgradeController extends Controller {
             'version_code' => 'required|integer',
             'url' => 'required|url',
             'title' => 'max:80',
-            'content' => 'max:200',
+            //'content' => 'min:20',
             'is_forced_update' => [Rule::in([0, 1])],
         ]);
         if ($validator->fails()) {

+ 30 - 0
database/migrations/2019_08_21_163735_update_upgrade_table.php

@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class UpdateUpgradeTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('upgrade', function (Blueprint $table) {
+            $table->text('content')->comment('说明')->change();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+}