diff --git a/migrations/2019_10_12_195349_change_posts_add_discussion_foreign_key.php b/migrations/2019_10_12_195349_change_posts_add_discussion_foreign_key.php index 63e655329..c72118bbb 100644 --- a/migrations/2019_10_12_195349_change_posts_add_discussion_foreign_key.php +++ b/migrations/2019_10_12_195349_change_posts_add_discussion_foreign_key.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; @@ -14,7 +23,6 @@ return [ }) ->delete(); - $schema->table('posts', function (Blueprint $table) { $table->foreign('discussion_id')->references('id')->on('discussions')->onDelete('cascade'); });