feat: delete
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::dropIfExists('sms_reports');
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::create('sms_reports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('device_id')->constrained('devices')->cascadeOnDelete();
|
||||
$table->string('device_key', 64)->index();
|
||||
$table->string('task_id', 128)->nullable()->index();
|
||||
$table->string('dest_phone', 64)->nullable();
|
||||
$table->string('local_phone', 64)->nullable();
|
||||
$table->text('msg')->nullable();
|
||||
$table->string('status', 64)->nullable();
|
||||
$table->json('payload')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user