Migration fixes (#9776)

* add migrate:install to lnms, but hide it

* Fix Database migration validation

* remove extra import

* Don't allow install to continue if db build fails
This commit is contained in:
Tony Murray
2019-02-05 16:50:51 -06:00
committed by GitHub
parent 49f206f58e
commit e5eb32c4a9
5 changed files with 103 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* MigrateInstallCommand.php
*
* -Description-
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2019 Tony Murray
* @author Tony Murray <murraytony@gmail.com>
*/
namespace App\Console;
use Illuminate\Database\Console\Migrations\InstallCommand;
class MigrateInstallCommand extends InstallCommand
{
protected $hidden = true;
}