forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2016_01_23_202731_add_service_varibles.php
More file actions
36 lines (33 loc) · 1 KB
/
2016_01_23_202731_add_service_varibles.php
File metadata and controls
36 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddServiceVaribles extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('service_variables', function (Blueprint $table) {
$table->increments('id');
$table->mediumInteger('option_id')->unsigned();
$table->string('name');
$table->text('description');
$table->string('env_variable');
$table->string('default_value');
$table->tinyInteger('user_viewable')->unsigned();
$table->tinyInteger('user_editable')->unsigned();
$table->tinyInteger('required')->unsigned();
$table->string('regex')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('service_variables');
}
}