Drop updated_at from system_log

This commit is contained in:
Deon George 2024-11-08 21:29:30 +11:00
parent 6c9f4facc6
commit ff4ecddb76
2 changed files with 30 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class SystemLog extends Model class SystemLog extends Model
{ {
const UPDATED_AT = null;
/* RELATIONS */ /* RELATIONS */
public function mailer() public function mailer()

View File

@ -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('system_logs', function (Blueprint $table) {
$table->dropColumn(['updated_at']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('system_logs', function (Blueprint $table) {
$table->timestamp('updated_at');
});
}
};