Moved upgrade.php to scripts/

This commit is contained in:
Marcin Kurczewski 2014-09-25 11:51:51 +02:00
parent ac62a44ba7
commit 2bb2d1f743
2 changed files with 5 additions and 2 deletions

View file

@ -83,7 +83,7 @@ module.exports = function(grunt) {
},
upgrade: {
command: 'php upgrade.php',
command: 'php scripts/upgrade.php',
},
},

View file

@ -1,5 +1,8 @@
<?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->runUpgradesVerbose();