Skip to content

Commit

Permalink
Merge pull request #22 from dcblogdev/change-body-lengh
Browse files Browse the repository at this point in the history
Extend 'body' length in 'sent_emails' table
  • Loading branch information
dcblogdev authored May 7, 2024
2 parents cd1bed0 + 1bfef78 commit 149cb34
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
],
"require": {
"illuminate/support": "9.x|10.x|11.x",
"ext-zlib": "*"
"ext-zlib": "*",
"doctrine/dbal": "^3.8"
},
"require-dev": {
"pestphp/pest": "^2.0",
Expand Down
28 changes: 28 additions & 0 deletions src/database/migrations/2024_05_07_204307_change_body_lengh.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('sent_emails', function (Blueprint $table) {
$table->longText('body')->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('sent_emails', function (Blueprint $table) {
$table->text('body')->change();
});
}
};

0 comments on commit 149cb34

Please sign in to comment.