feat: notifikasi kehadiran ke wali per sesi (hadir/izin/sakit) saat sync e-jurnal + fix violation_id nullable

This commit is contained in:
Novy San87
2026-08-06 13:05:59 +07:00
parent 1b49270c4a
commit 9078377e7e
2 changed files with 179 additions and 0 deletions
@@ -0,0 +1,24 @@
<?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
{
// violation_id boleh kosong untuk notifikasi non-pelanggaran
// (mis. notifikasi kehadiran & SP yang belum punya violation terkait).
Schema::table('violation_notifications', function (Blueprint $table) {
$table->foreignId('violation_id')->nullable()->change();
});
}
public function down(): void
{
Schema::table('violation_notifications', function (Blueprint $table) {
$table->foreignId('violation_id')->nullable(false)->change();
});
}
};