gq преди 7 години
родител
ревизия
088cdaa229
променени са 1 файла, в които са добавени 32 реда и са изтрити 0 реда
  1. 32 0
      server/database/migrations/2017_11_03_155229_alert_score_to_dream_info_table.php

+ 32 - 0
server/database/migrations/2017_11_03_155229_alert_score_to_dream_info_table.php

xqd
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AlertScoreToDreamInfoTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('dream_info', function (Blueprint $table) {
+            $table->unsignedBigInteger('score')->defalut(0)->change();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('dream_info', function (Blueprint $table) {
+            //
+        });
+    }
+}