mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 00:43:54 +08:00
Merge pull request #684 from ahsanity/settings-migration
Converted 'settings' table 'value' column from BLOB to TEXT
This commit is contained in:
commit
e0db5823ee
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user