1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Submit spam and ham feedback to Akismet

This commit is contained in:
Toby Zerner
2015-10-31 14:50:07 +10:30
parent f7f25c8f41
commit 2a76c27814
2 changed files with 75 additions and 9 deletions

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Akismet\Migration;
use Flarum\Database\AbstractMigration;
use Illuminate\Database\Schema\Blueprint;
class AddIsSpamToPosts extends AbstractMigration
{
public function up()
{
$this->schema->table('posts', function (Blueprint $table) {
$table->boolean('is_spam')->default(0);
});
}
public function down()
{
$this->schema->table('posts', function (Blueprint $table) {
$table->dropColumn('is_spam');
});
}
}