瀏覽代碼

添加分类

chenxiqiang 6 年之前
父節點
當前提交
078c31abd4
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. 5
    5
      manage-server/database/migrations/2018_08_20_075456_create_classifies_table.php

manage-server/database/migrations/2018_08_20_014238_create_classifys_table.php → manage-server/database/migrations/2018_08_20_075456_create_classifies_table.php 查看文件

@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
4 4
 use Illuminate\Database\Schema\Blueprint;
5 5
 use Illuminate\Database\Migrations\Migration;
6 6
 
7
-class CreateClassifysTable extends Migration
7
+class CreateClassifiesTable extends Migration
8 8
 {
9 9
     /**
10 10
      * Run the migrations.
@@ -13,11 +13,11 @@ class CreateClassifysTable extends Migration
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('classifys', function (Blueprint $table) {
16
+        Schema::create('classifies', function (Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19
-            $table->unsignedInteger('pid'); // 父id
20
-            $table->string('name'); // 名称
19
+            $table->unsignedInteger('pid');
20
+            $table->string('name');
21 21
         });
22 22
     }
23 23
 
@@ -28,6 +28,6 @@ class CreateClassifysTable extends Migration
28 28
      */
29 29
     public function down()
30 30
     {
31
-        Schema::dropIfExists('classifys');
31
+        Schema::dropIfExists('classifies');
32 32
     }
33 33
 }

Loading…
取消
儲存