You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
|
6 months ago
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
|
||
|
|
return new class extends Migration {
|
||
|
|
/**
|
||
|
|
* Run the migrations.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
Schema::table('notifications', function (Blueprint $table) {
|
||
|
|
$table->dateTime('send_time')->nullable()->comment('发送时间');
|
||
|
|
$table->integer('via_times')->default(0)->nullable()->comment('尝试次数');
|
||
|
|
$table->text('send_data')->nullable()->comment('发送的数据');
|
||
|
|
$table->text('retrun_data')->nullable()->comment('返回的数据');
|
||
|
|
$table->text('sms_send_data')->nullable()->comment('短信发送的数据');
|
||
|
|
$table->text('sms_retrun_data')->nullable()->comment('短信返回的数据');
|
||
|
|
$table->dateTime('sms_send_time')->nullable()->comment('短信发送时间');
|
||
|
|
$table->timestamp('deleted_at')->nullable()->comment('删除时间');
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Reverse the migrations.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
Schema::table('notifications', function (Blueprint $table) {
|
||
|
|
//
|
||
|
|
});
|
||
|
|
}
|
||
|
|
};
|