Change the body size to medium text #920 (#930)

Change the body size to medium text (16MB) #920
This commit is contained in:
Nabeel S
2020-11-20 12:00:37 -05:00
committed by GitHub
parent a2de532f72
commit ced2c150b7
2 changed files with 34 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ services:
install:
- php --version
- mysql --version
# Downgrade composer version to 1.x
- composer self-update --1
- composer install --dev --no-interaction --verbose
- npm i tar-to-zip -g
- cp .travis/env.travis.php env.php

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Change the pages body column type to a Medium Text, max size of 16MB
*/
class ModifyPagesSize extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('pages', function (Blueprint $table) {
$table->mediumText('body')->change()->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}