1
0
mirror of https://github.com/flarum/core.git synced 2025-06-04 05:35:55 +02:00
php-flarum/migrations/2015_02_24_000000_create_config_table.php
2015-05-19 01:22:09 +02:00

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