Преглед на файлове

Update status migration

Daniel Supernault преди 7 години
родител
ревизия
d641f2b453
променени са 1 файла, в които са добавени 15 реда и са изтрити 2 реда
  1. 15 2
      database/migrations/2018_04_16_005848_create_statuses_table.php

+ 15 - 2
database/migrations/2018_04_16_005848_create_statuses_table.php

@@ -15,9 +15,22 @@ class CreateStatusesTable extends Migration
     {
     {
         Schema::create('statuses', function (Blueprint $table) {
         Schema::create('statuses', function (Blueprint $table) {
             $table->increments('id');
             $table->increments('id');
-            $table->unsignedInteger('profile_id')->nullable();
+            $table->string('uri')->nullable();          
             $table->string('caption')->nullable();
             $table->string('caption')->nullable();
-            $table->boolean('is_nsfw')->default(false);          
+            $table->unsignedInteger('profile_id')->nullable();
+            $table->bigInteger('in_reply_to_id')->unsigned()->nullable();
+            $table->bigInteger('reblog_of_id')->unsigned()->nullable();
+            $table->string('url')->nullable();
+            $table->boolean('is_nsfw')->default(false);
+            $table->enum('visibility', ['public', 'unlisted', 'private', 'direct'])->default('public');
+            $table->boolean('reply')->default(false);
+            $table->bigInteger('likes_count')->unsigned()->default(0);
+            $table->bigInteger('reblogs_count')->unsigned()->default(0);
+            $table->string('language')->nullable();
+            $table->bigInteger('conversation_id')->unsigned()->nullable();
+            $table->boolean('local')->default(true);
+            $table->bigInteger('application_id')
+            $table->bigInteger('in_reply_to_profile_id')->unsigned()->nullable();
             $table->timestamps();
             $table->timestamps();
         });
         });
     }
     }