2017-03-10 23:25:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class DeleteServiceExecutableOption extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
2022-11-25 20:29:04 +00:00
|
|
|
public function up(): void
|
2017-03-10 23:25:12 +00:00
|
|
|
{
|
2021-01-23 20:09:16 +00:00
|
|
|
Schema::table('services', function (Blueprint $table) {
|
|
|
|
$table->renameColumn('file', 'folder');
|
|
|
|
$table->dropColumn('executable');
|
|
|
|
$table->text('description')->nullable()->change();
|
|
|
|
$table->text('startup')->nullable()->change();
|
2017-03-10 23:25:12 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
2022-11-25 20:29:04 +00:00
|
|
|
public function down(): void
|
2017-03-10 23:25:12 +00:00
|
|
|
{
|
|
|
|
Schema::table('services', function (Blueprint $table) {
|
|
|
|
$table->string('executable')->after('folder');
|
|
|
|
$table->renameColumn('folder', 'file');
|
|
|
|
$table->text('description')->nullable(false)->change();
|
|
|
|
$table->text('startup')->nullable(false)->change();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|