mirror of
https://github.com/flarum/core.git
synced 2025-06-04 05:35:55 +02:00
33 lines
580 B
PHP
33 lines
580 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
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');
|
|
}
|
|
}
|