2015-08-30 16:31:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2021-06-26 17:23:15 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2015-08-30 16:31:16 +02:00
|
|
|
|
|
|
|
class CreateSettingsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('settings', function (Blueprint $table) {
|
|
|
|
$table->string('setting_key')->primary()->indexed();
|
|
|
|
$table->text('value');
|
2016-02-16 22:25:11 +01:00
|
|
|
$table->nullableTimestamps();
|
2015-08-30 16:31:16 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('settings');
|
|
|
|
}
|
|
|
|
}
|