ctrlpanel/database/migrations/2022_01_05_071040_create_settings_table.php

36 lines
746 B
PHP
Raw Normal View History

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 09:32:17 +00:00
class CreateSettingsTable extends Migration
2021-06-05 09:26:32 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->id();
$table->string('key');
2022-01-05 09:32:17 +00:00
$table->string('value')->nullable();
$table->string('type');
$table->string('description');
2021-06-05 09:26:32 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('settings');
2021-06-05 09:26:32 +00:00
}
}