1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

remove unneeded migration

This commit is contained in:
Ian Morland
2022-10-24 10:07:25 +01:00
parent 8406d51df2
commit 9347665baa

View File

@@ -1,23 +0,0 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
// do this manually because dbal doesn't recognize timestamp columns
$connection = $schema->getConnection();
$prefix = $connection->getTablePrefix();
$connection->statement("ALTER TABLE `${prefix}post_mentions_group` MODIFY created_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP");
},
'down' => function (Builder $schema) {
// Nothing to do.
}
];