From ff4ecddb76f5ee8fd6744279d4a1c28d68690a7b Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 8 Nov 2024 21:29:30 +1100 Subject: [PATCH] Drop updated_at from system_log --- app/Models/SystemLog.php | 2 ++ ...11_08_211845_systemlog_drop_updated_at.php | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 database/migrations/2024_11_08_211845_systemlog_drop_updated_at.php diff --git a/app/Models/SystemLog.php b/app/Models/SystemLog.php index 1b6640d..019e22d 100644 --- a/app/Models/SystemLog.php +++ b/app/Models/SystemLog.php @@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model; class SystemLog extends Model { + const UPDATED_AT = null; + /* RELATIONS */ public function mailer() diff --git a/database/migrations/2024_11_08_211845_systemlog_drop_updated_at.php b/database/migrations/2024_11_08_211845_systemlog_drop_updated_at.php new file mode 100644 index 0000000..b1b4fb6 --- /dev/null +++ b/database/migrations/2024_11_08_211845_systemlog_drop_updated_at.php @@ -0,0 +1,28 @@ +dropColumn(['updated_at']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('system_logs', function (Blueprint $table) { + $table->timestamp('updated_at'); + }); + } +};