1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 11:54:32 +02:00

Use dependency injection in migrations

This commit is contained in:
Franz Liedke
2015-08-12 01:29:40 +02:00
parent 9762e20be1
commit 7b07e02e75
14 changed files with 57 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
<?php
use Flarum\Install\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateNotificationsTable extends Migration
@@ -14,7 +14,7 @@ class CreateNotificationsTable extends Migration
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$this->schema->create('notifications', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
@@ -36,6 +36,6 @@ class CreateNotificationsTable extends Migration
*/
public function down()
{
Schema::drop('notifications');
$this->schema->drop('notifications');
}
}