Merge pull request #3614 from autn/feat/cms/update-cms-page-translations-table-field-html-content-from-text-to-longtext

Update cms_page_translations table field html content from text to longtext
This commit is contained in:
Jitendra Singh 2020-08-13 16:25:09 +05:30 committed by GitHub
commit fc1884c711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
});
}
}