dolibarr.netdiag/sql/llx_netdiag_applog.sql
Eduard Wisch 914101ba30
All checks were successful
Deploy netdiag / deploy (push) Successful in 14s
API-Endpoint applog.php — Debug-Log der mobilen App empfangen [deploy]
Die App erfasst Fehler/Meldungen und schiebt sie per POST hierher; sie
landen in llx_netdiag_applog und sind serverseitig auswertbar — ohne Kabel.
- api/applog.php: JWT-Auth (wie alle Endpoints), Batch-Insert, legt die
  Tabelle bei Bedarf an (Modul kann schon vorher installiert gewesen sein)
- sql/llx_netdiag_applog.sql + .key.sql: Tabelle fuer saubere Neuinstallation

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 17:39:31 +02:00

20 lines
729 B
SQL

-- Copyright (C) 2026 Eduard Wisch <data@data-it-solution.de>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- Tabelle: Debug-Log der mobilen App (von api/applog.php befüllt)
CREATE TABLE llx_netdiag_applog(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
entity integer DEFAULT 1 NOT NULL,
fk_user integer,
app_version varchar(32),
device varchar(128),
level varchar(8),
message text,
date_log datetime,
date_creation datetime NOT NULL
) ENGINE=innodb;