forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2016_11_11_220649_add_pack_support.php
More file actions
40 lines (36 loc) · 1009 Bytes
/
2016_11_11_220649_add_pack_support.php
File metadata and controls
40 lines (36 loc) · 1009 Bytes
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
37
38
39
40
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPackSupport extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('service_packs', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('option');
$table->char('uuid', 36)->unique();
$table->string('name');
$table->string('version');
$table->text('description')->nullable();
$table->boolean('selectable')->default(true);
$table->boolean('visible')->default(true);
$table->timestamps();
$table->foreign('option')->references('id')->on('service_options');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('service_packs');
}
}