mirror of
https://github.com/flarum/core.git
synced 2025-02-25 11:43:19 +01:00
34 lines
619 B
PHP
34 lines
619 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateConfigTable extends Migration
|
|
{
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('config', function (Blueprint $table) {
|
|
|
|
$table->string('key', 100)->primary();
|
|
$table->binary('value')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('config');
|
|
}
|
|
}
|