2020-11-05 09:36:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
2021-03-18 08:40:20 +01:00
|
|
|
class CreateContents extends Migration
|
2020-11-05 09:36:13 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
2021-03-17 09:28:02 +01:00
|
|
|
Schema::create('contents', function (Blueprint $table) {
|
2020-11-05 09:36:13 +01:00
|
|
|
$table->id();
|
|
|
|
|
$table->string('key');
|
|
|
|
|
$table->text('value');
|
|
|
|
|
$table->timestamps();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function down()
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('content');
|
|
|
|
|
}
|
|
|
|
|
}
|