2021-06-05 09:26:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
2022-01-05 07:57:41 +00:00
|
|
|
class Settings extends Migration
|
2021-06-05 09:26:32 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
2022-01-05 07:57:41 +00:00
|
|
|
Schema::create('settings', function (Blueprint $table) {
|
|
|
|
$table->id();
|
|
|
|
$table->string('key');
|
2021-06-05 09:26:32 +00:00
|
|
|
$table->string('value');
|
2022-01-05 07:57:41 +00:00
|
|
|
$table->string('type');
|
|
|
|
$table->string('description');
|
2021-06-05 09:26:32 +00:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
2022-01-05 07:57:41 +00:00
|
|
|
Schema::dropIfExists('settings');
|
2021-06-05 09:26:32 +00:00
|
|
|
}
|
|
|
|
}
|