Feat (CMS): Update cms_page_translations table field html_content from text to longtext

This commit is contained in:
AuTN 2020-07-31 17:37:29 +07:00
parent 52277bfbcc
commit bda810dd5a
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Hack core: Change the migration
* Added by AuTN
*/
class UpdateCmsPageTranslationsTableFieldHtmlContent extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cms_page_translations', function (Blueprint $table) {
$table->longtext('html_content')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('cms_page_translations', function (Blueprint $table) {
$table->text('html_content')->nullable()->change();
});
}
}