Settings should hold LONGTEXT for app banners

This commit is contained in:
James Brooks
2014-12-31 12:02:04 +00:00
parent edb587b9ee
commit 3c9478cdc4

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterTableSettingsValueLongText extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement("ALTER TABLE settings CHANGE `value` `value` LONGTEXT;");
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
DB::statement("ALTER TABLE settings CHANGE `value` `value` TEXT;");
}
}