Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykenedy committed Feb 27, 2023
1 parent 148ae4e commit e9e82f1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 143 deletions.
39 changes: 39 additions & 0 deletions src/Database/Migrations/2023_02_26_001638_create_email_log.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

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

class CreateEmailLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::create('email_log', function (Blueprint $table) {
$table->id();
$table->dateTime('date');
$table->string('from')->nullable();
$table->string('to')->nullable();
$table->string('cc')->nullable();
$table->string('bcc')->nullable();
$table->string('subject');
$table->text('body');
$table->text('headers')->nullable();
$table->longText('attachments')->nullable();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::dropIfExists('email_log');
}
}
37 changes: 0 additions & 37 deletions src/database/migrations/2015_07_31_1_email_log.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e9e82f1

Please sign in to comment.