1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 23:47:32 +02:00

Update extensions/mentions/migrations/2022_10_21_000000_create_post_mentions_groups_table.php

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Ian Morland
2022-10-24 10:05:40 +01:00
committed by GitHub
parent 5e16df2b14
commit 8406d51df2

View File

@@ -15,7 +15,7 @@ return Migration::createTable(
function (Blueprint $table) { function (Blueprint $table) {
$table->integer('post_id')->unsigned(); $table->integer('post_id')->unsigned();
$table->integer('mentions_group_id')->unsigned(); $table->integer('mentions_group_id')->unsigned();
$table->timestamp('created_at')->nullable(); $table->timestamp('created_at')->useCurrent()->nullable();
$table->primary(['post_id', 'mentions_group_id']); $table->primary(['post_id', 'mentions_group_id']);
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade'); $table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');