From 74c8b5a9fba331e0151a05814cd1f9b35079a87f Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 19 Oct 2020 20:01:23 +0200 Subject: Add title to posts migration --- database/migrations/2020_10_18_142620_create_posts_table.php | 1 + 1 file changed, 1 insertion(+) (limited to 'database') 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(); -- cgit v1.2.3