Add support for viewing SFTP password in panel

requested in #74
closes #74
This commit is contained in:
Dane Everitt 2016-09-02 19:26:48 -04:00
parent 8c40f647d3
commit 1ca07e665e
7 changed files with 97 additions and 22 deletions

View file

@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSftpPasswordStorage extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('servers', function (Blueprint $table) {
$table->text('sftp_password')->after('username')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('servers', function (Blueprint $table) {
$table->dropColumn('sftp_password');
});
}
}