1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 11:43:19 +01:00
php-flarum/migrations/2015_02_24_000000_create_config_table.php
2015-06-09 02:45:02 +02:00

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');
}
}