mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 14:44:03 +08:00
Issue#669: Convert 'settings' table 'value' column to TEXT instead of BLOB
This commit is contained in:
parent
32601d2c98
commit
46f7f6b3fe
@ -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…
x
Reference in New Issue
Block a user