1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 20:04:24 +02:00

Update for composer branch

This commit is contained in:
Toby Zerner
2015-10-11 22:54:48 +10:30
parent 5d9d04d2ab
commit 5486cc3ed8
25 changed files with 389 additions and 228 deletions

View File

@@ -1,17 +1,20 @@
<?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\Migrations\Approval;
namespace Flarum\Approval\Migration;
use Flarum\Database\AbstractMigration;
use Illuminate\Database\Schema\Blueprint;
use Flarum\Migrations\Migration;
class AddIsApprovedToDiscussions extends Migration
class AddIsApprovedToDiscussions extends AbstractMigration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->schema->table('discussions', function (Blueprint $table) {
@@ -19,11 +22,6 @@ class AddIsApprovedToDiscussions extends Migration
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->schema->table('discussions', function (Blueprint $table) {

View File

@@ -1,17 +1,20 @@
<?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\Migrations\Approval;
namespace Flarum\Approval\Migration;
use Flarum\Database\AbstractMigration;
use Illuminate\Database\Schema\Blueprint;
use Flarum\Migrations\Migration;
class AddIsApprovedToPosts extends Migration
class AddIsApprovedToPosts extends AbstractMigration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$this->schema->table('posts', function (Blueprint $table) {
@@ -19,11 +22,6 @@ class AddIsApprovedToPosts extends Migration
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$this->schema->table('posts', function (Blueprint $table) {