Merge pull request #684 from ahsanity/settings-migration

Converted 'settings' table 'value' column from BLOB to TEXT
This commit is contained in:
Franz Liedke 2015-12-18 13:45:20 +01:00
commit e0db5823ee

View File

@ -0,0 +1,23 @@
<?php
namespace Flarum\Core\Migration;
use Flarum\Database\AbstractMigration;
use Illuminate\Database\Schema\Blueprint;
class ChangeSettingsValueColumnToText extends AbstractMigration
{
public function up()
{
$this->schema->table('settings', function (Blueprint $table) {
$table->text('value')->change();
});
}
public function down()
{
$this->schema->table('settings', function (Blueprint $table) {
$table->binary('value')->change();
});
}
}