Initial implementation of option scripts on panel side.
This commit is contained in:
parent
5d990dcb06
commit
03e0de28d9
10 changed files with 284 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddInstallAndUpgradePaths extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('service_options', function (Blueprint $table) {
|
||||
$table->text('script_upgrade')->after('startup')->nullable();
|
||||
$table->text('script_install')->after('startup')->nullable();
|
||||
$table->boolean('script_is_privileged')->default(false)->after('startup');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('service_options', function (Blueprint $table) {
|
||||
$table->dropColumn('script_upgrade');
|
||||
$table->dropColumn('script_install');
|
||||
$table->dropColumn('script_is_privileged');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue