2016-01-20 22:08:09 -05:00
|
|
|
<?php
|
|
|
|
|
|
2024-10-21 19:18:20 -06:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2016-01-20 22:08:09 -05:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
|
|
class CreateSettingsTable extends Migration
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function up(): void
|
2016-01-20 22:08:09 -05:00
|
|
|
{
|
|
|
|
|
Schema::create('settings', function (Blueprint $table) {
|
|
|
|
|
$table->string('key')->unique();
|
|
|
|
|
$table->text('value');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function down(): void
|
2016-01-20 22:08:09 -05:00
|
|
|
{
|
2016-01-23 15:42:25 -05:00
|
|
|
Schema::dropIfExists('settings');
|
2016-01-20 22:08:09 -05:00
|
|
|
}
|
|
|
|
|
}
|