perf: 优化任务到期前后邮件提醒

This commit is contained in:
kuaifan
2022-04-07 08:29:49 +08:00
parent 9bc56f5d17
commit 601d037201
5 changed files with 119 additions and 93 deletions

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddProjectTaskMailLogsSendError extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('project_task_mail_logs', function (Blueprint $table) {
if (!Schema::hasColumn('project_task_mail_logs', 'send_error')) {
$table->text('send_error')->nullable()->after('is_send')->comment('邮件发送错误详情');
}
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('project_task_mail_logs', function (Blueprint $table) {
$table->dropColumn("send_error");
});
}
}