Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_01_23_202943_add_services.php
7460 views
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class AddServices extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('services', function (Blueprint $table) {
15
$table->increments('id');
16
$table->string('name');
17
$table->text('description');
18
$table->string('file');
19
$table->string('executable');
20
$table->text('startup');
21
$table->timestamps();
22
});
23
}
24
25
/**
26
* Reverse the migrations.
27
*/
28
public function down(): void
29
{
30
Schema::dropIfExists('services');
31
}
32
}
33
34