Raffales-LMS/database/migrations/2022_08_16_082610_create_settings_table.php
2024-04-16 15:43:24 +05:45

36 lines
786 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tbl_settings', function (Blueprint $table) {
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('slug');
$table->longtext('value')->nullable();
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tbl_settings');
}
}