1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 02:44:04 +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 CreateConfigTable extends Migration
@@ -14,7 +14,7 @@ class CreateConfigTable extends Migration
*/
public function up()
{
Schema::create('config', function (Blueprint $table) {
$this->schema->create('config', function (Blueprint $table) {
$table->string('key', 100)->primary();
$table->binary('value')->nullable();
@@ -28,6 +28,6 @@ class CreateConfigTable extends Migration
*/
public function down()
{
Schema::drop('config');
$this->schema->drop('config');
}
}