aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2020_10_18_142620_create_posts_table.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-19 20:01:23 +0200
committerMateja <mail@matejamaric.com>2020-10-19 20:01:23 +0200
commit74c8b5a9fba331e0151a05814cd1f9b35079a87f (patch)
treed3107cb5dc0621e2a9f05aff9c6968138fea1e14 /database/migrations/2020_10_18_142620_create_posts_table.php
parent4f956151936eed1cf15d91e57b3148f235d03215 (diff)
downloadyota-laravel-74c8b5a9fba331e0151a05814cd1f9b35079a87f.tar.gz
yota-laravel-74c8b5a9fba331e0151a05814cd1f9b35079a87f.zip
Add title to posts migration
Diffstat (limited to 'database/migrations/2020_10_18_142620_create_posts_table.php')
-rw-r--r--database/migrations/2020_10_18_142620_create_posts_table.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/database/migrations/2020_10_18_142620_create_posts_table.php b/database/migrations/2020_10_18_142620_create_posts_table.php
index 923295d..f14dce6 100644
--- a/database/migrations/2020_10_18_142620_create_posts_table.php
+++ b/database/migrations/2020_10_18_142620_create_posts_table.php
@@ -15,6 +15,7 @@ class CreatePostsTable extends Migration
{
Schema::create('posts', function (Blueprint $table) {
$table->id();
+ $table->string('title', 255);
$table->string('author', 255)->nullable();
$table->longText('text');
$table->timestamps();