fix: SystemAlert @PrePersist override + types_reference complete schema in V1

- SystemAlert.onCreate() now calls super.onCreate() to set dateCreation (was null → NOT NULL violation every minute)
- V1: types_reference updated with full schema (domaine, est_defaut, est_systeme, ordre_affichage, modules_requis, organisation_id)
- V9: idempotent guard for categorie nullable ALTER (already nullable in updated V1)
This commit is contained in:
dahoud
2026-04-08 17:01:58 +00:00
parent 771755dce8
commit 3c1e5c6a2d
3 changed files with 17 additions and 4 deletions

View File

@@ -108,6 +108,7 @@ public class SystemAlert extends BaseEntity {
*/
@PrePersist
protected void onCreate() {
super.onCreate();
if (timestamp == null) {
timestamp = LocalDateTime.now();
}