Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_01_23_203119_create_settings_table.php
7461 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 CreateSettingsTable extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('settings', function (Blueprint $table) {
15
$table->string('key')->unique();
16
$table->text('value');
17
});
18
}
19
20
/**
21
* Reverse the migrations.
22
*/
23
public function down(): void
24
{
25
Schema::dropIfExists('settings');
26
}
27
}
28
29