2015-12-07 22:46:46 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2025-09-24 13:34:19 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2015-12-07 22:46:46 -05:00
|
|
|
|
2024-03-19 21:03:50 -04:00
|
|
|
return new class extends Migration
|
2015-12-07 22:46:46 -05:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function up(): void
|
2015-12-07 22:46:46 -05:00
|
|
|
{
|
|
|
|
|
Schema::create('services', function (Blueprint $table) {
|
2016-01-23 15:42:25 -05:00
|
|
|
$table->increments('id');
|
2015-12-07 22:46:46 -05:00
|
|
|
$table->string('name');
|
|
|
|
|
$table->text('description');
|
2016-01-23 15:42:25 -05:00
|
|
|
$table->string('file');
|
|
|
|
|
$table->string('executable');
|
|
|
|
|
$table->text('startup');
|
|
|
|
|
$table->timestamps();
|
2015-12-07 22:46:46 -05:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function down(): void
|
2015-12-07 22:46:46 -05:00
|
|
|
{
|
2016-01-23 15:42:25 -05:00
|
|
|
Schema::dropIfExists('services');
|
2015-12-07 22:46:46 -05:00
|
|
|
}
|
2024-03-19 21:03:50 -04:00
|
|
|
};
|