| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 1.0.8 Free | |
| 4 | + * @version 3.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FireBox\Core\Tables; |
| @@ -19,12 +19,19 @@ | ||
| 19 | 19 | use FPFramework\Includes\DB; |
| 20 | 20 | |
| 21 | 21 | class Boxlogdetails extends DB |
| 22 | 22 | { |
| 23 | + /** | |
| 24 | + * The column list below covers this table in full, so inserts can safely be | |
| 25 | + * restricted to it. | |
| 26 | + * | |
| 27 | + * @var bool | |
| 28 | + */ | |
| 29 | + protected $enforce_insert_columns = true; | |
| 30 | + | |
| 23 | 31 | public function __construct() |
| 24 | 32 | { |
| 25 | 33 | $this->table_name = 'firebox_logs_details'; |
| 26 | - $this->primary_key = 'id'; | |
| 27 | 34 | } |
| 28 | 35 | |
| 29 | 36 | /** |
| 30 | 37 | * Get columns and formats |
| @@ -33,12 +40,13 @@ | ||
| 33 | 40 | */ |
| 34 | 41 | public function get_columns() |
| 35 | 42 | { |
| 36 | 43 | return [ |
| 37 | - 'id' => '%d', | |
| 38 | - 'log_id' => '%s', | |
| 39 | - 'event' => '%s', | |
| 40 | - 'params' => '%s', | |
| 41 | - 'date' => '%s', | |
| 44 | + 'id' => '%d', | |
| 45 | + 'log_id' => '%d', | |
| 46 | + 'event' => '%s', | |
| 47 | + 'event_source' => '%s', | |
| 48 | + 'event_label' => '%s', | |
| 49 | + 'date' => '%s', | |
| 42 | 50 | ]; |
| 43 | 51 | } |
| 44 | 52 | } |