Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

migration file to use longtext instead of text for email_log table #12

Merged
merged 2 commits into from May 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,30 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class UseLongtextForAttachments extends Migration {

/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::table('email_log', function (Blueprint $table) {
$table->longText('attachments')->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::table('email_log', function (Blueprint $table) {
$table->text('attachments')->nullable()->change();
});
}

}