mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Fix installation
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Flarum\Migrations\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
@@ -1,6 +1,14 @@
|
|||||||
<?php
|
<?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\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
|
@@ -1,6 +1,14 @@
|
|||||||
<?php
|
<?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\Core;
|
namespace Flarum\Core\Migrations;
|
||||||
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Flarum\Migrations\Migration;
|
use Flarum\Migrations\Migration;
|
||||||
|
@@ -310,10 +310,8 @@ class InstallCommand extends Command
|
|||||||
|
|
||||||
$migrator = $extensions->getMigrator();
|
$migrator = $extensions->getMigrator();
|
||||||
|
|
||||||
foreach ($extensions->getInfo() as $extension) {
|
foreach ($extensions->getInfo() as $name => $extension) {
|
||||||
$name = $extension->name;
|
if ($name === 'flarum-pusher') {
|
||||||
|
|
||||||
if ($name === 'pusher') {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,7 +327,7 @@ class InstallCommand extends Command
|
|||||||
|
|
||||||
protected function getConfigFile()
|
protected function getConfigFile()
|
||||||
{
|
{
|
||||||
return base_path('../config.php');
|
return base_path('config.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -246,7 +246,7 @@ class Migrator
|
|||||||
{
|
{
|
||||||
$file = implode('_', array_slice(explode('_', $file), 4));
|
$file = implode('_', array_slice(explode('_', $file), 4));
|
||||||
|
|
||||||
$class = ($extension ? str_replace('-', '\\', $extension) : 'Core') . '\\Migrations\\';
|
$class = ($extension ? str_replace('-', '\\', $extension) : 'Flarum\\Core') . '\\Migrations\\';
|
||||||
|
|
||||||
$class .= Str::studly($file);
|
$class .= Str::studly($file);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user