aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--database/migrations/2018_08_23_231531_create_text_posts_table.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/database/migrations/2018_08_23_231531_create_text_posts_table.php b/database/migrations/2018_08_23_231531_create_text_posts_table.php
index 82c2693..d7807bb 100644
--- a/database/migrations/2018_08_23_231531_create_text_posts_table.php
+++ b/database/migrations/2018_08_23_231531_create_text_posts_table.php
@@ -1,8 +1,8 @@
<?php
-use Illuminate\Support\Facades\Schema;
-use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
class CreateTextPostsTable extends Migration
{
@@ -16,6 +16,7 @@ class CreateTextPostsTable extends Migration
Schema::create('text_posts', function (Blueprint $table) {
$table->increments('id');
$table->integer('post_id')->unsigned()->unique();
+ $table->string('description');
$table->string('text', 8192);
$table->foreign('post_id')