Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_01_23_202731_add_service_varibles.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 AddServiceVaribles extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('service_variables', function (Blueprint $table) {
15
$table->increments('id');
16
$table->mediumInteger('option_id')->unsigned();
17
$table->string('name');
18
$table->text('description');
19
$table->string('env_variable');
20
$table->string('default_value');
21
$table->tinyInteger('user_viewable')->unsigned();
22
$table->tinyInteger('user_editable')->unsigned();
23
$table->tinyInteger('required')->unsigned();
24
$table->string('regex')->nullable();
25
$table->timestamps();
26
});
27
}
28
29
/**
30
* Reverse the migrations.
31
*/
32
public function down(): void
33
{
34
Schema::dropIfExists('service_variables');
35
}
36
}
37
38