Moved upgrade.php to scripts/
This commit is contained in:
parent
ac62a44ba7
commit
2bb2d1f743
2 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
|
|
||||||
upgrade: {
|
upgrade: {
|
||||||
command: 'php upgrade.php',
|
command: 'php scripts/upgrade.php',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'AutoLoader.php');
|
require_once(__DIR__
|
||||||
|
. DIRECTORY_SEPARATOR . '..'
|
||||||
|
. DIRECTORY_SEPARATOR . 'src'
|
||||||
|
. DIRECTORY_SEPARATOR . 'AutoLoader.php');
|
||||||
|
|
||||||
$upgradeService = Szurubooru\Injector::get(\Szurubooru\Services\UpgradeService::class);
|
$upgradeService = Szurubooru\Injector::get(\Szurubooru\Services\UpgradeService::class);
|
||||||
$upgradeService->runUpgradesVerbose();
|
$upgradeService->runUpgradesVerbose();
|
Loading…
Reference in a new issue