Files

35 lines
987 B
PHP
Raw Permalink Normal View History

2017-03-10 18:25:12 -05: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 15:29:04 -05:00
public function up(): void
2017-03-10 18:25:12 -05:00
{
2021-01-23 12:09:16 -08: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 18:25:12 -05:00
});
}
/**
* Reverse the migrations.
*/
2022-11-25 15:29:04 -05:00
public function down(): void
2017-03-10 18:25:12 -05: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();
});
}
}