mirror of
https://github.com/itflow-org/itflow
synced 2026-08-28 02:15:13 +00:00
Add Holiday / Closure Days to SLA to pause SLA timer on defined days, also has a US Holiday Importer
This commit is contained in:
26
admin/database_updates/2.7.4.php
Normal file
26
admin/database_updates/2.7.4.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - Database update to version 2.7.4 (from 2.7.3)
|
||||
* Included by admin/database_updates.php - do not access directly
|
||||
*/
|
||||
|
||||
defined('FROM_DB_UPDATER') || die("Direct file access is not allowed");
|
||||
|
||||
// Closure days for the SLA business calendar. A date listed here yields no
|
||||
// business minutes at all, exactly like a weekday that is not a business
|
||||
// day - holidays are a calendar concept, not a per-ticket pause, so they
|
||||
// never touch sla_history.
|
||||
//
|
||||
// holiday_date is UNIQUE so the US federal holiday generator can be run
|
||||
// repeatedly (and over a year that was partly entered by hand) without
|
||||
// creating duplicates.
|
||||
|
||||
mysqli_query($mysqli, "CREATE TABLE IF NOT EXISTS `business_holidays` (
|
||||
`holiday_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`holiday_date` date NOT NULL,
|
||||
`holiday_name` varchar(200) NOT NULL,
|
||||
`holiday_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`holiday_id`),
|
||||
UNIQUE KEY `holiday_date` (`holiday_date`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci");
|
||||
Reference in New Issue
Block a user