diff options
author | Marvin Borner | 2018-08-29 01:10:47 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-29 01:10:47 +0200 |
commit | 4df4ae5b8eb97d5557bbd4f839416abded27495d (patch) | |
tree | bd3576e70b0d3e54572d0ca7a657e35f454d374a /database | |
parent | fe04289cb5b1ade0b68b64d2b9a3bd2a7c9a6030 (diff) |
Added description to text posts
Diffstat (limited to 'database')
-rw-r--r-- | database/migrations/2018_08_23_231531_create_text_posts_table.php | 5 |
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') |