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