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:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user