mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Mail review stage 7d: the links in emails that open a ticket, invoice or quote without signing in stop working a set time after it is closed, paid or answered, 90 days to start and set in Admin > Settings > Security, with an expired page pointing to the client portal and Copy Client Link marked Expired; your own subject, heading, opening and closing text for the 13 emails about a ticket to clients, edited from Admin > Settings > Mail > Previews with square-bracket placeholders (database 4.3.4); 26.12.3 changelog
This commit is contained in:
32
admin/database_updates/4.3.4.php
Normal file
32
admin/database_updates/4.3.4.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - Database update to version 4.3.4 (from 4.3.3)
|
||||
* Included by admin/database_updates.php - do not access directly
|
||||
*
|
||||
* settings.config_guest_link_days - how many days after a ticket is closed, an invoice paid or a quote answered or
|
||||
* run out its link in emails keeps working (functions/guest_link.php): 0 (always), 30, 60, 90, 180 or 365 - 90
|
||||
* email_templates - your own wording for the emails about a ticket to clients (functions/email_template.php): for
|
||||
* each, by its key, its subject, heading, opening and closing text - NULL keeps ITFlow's own
|
||||
*
|
||||
* Re-runnable: the column is added and the table made only where they aren't there.
|
||||
*/
|
||||
|
||||
defined('FROM_DB_UPDATER') || die("Direct file access is not allowed");
|
||||
|
||||
$itflow_column_exists = mysqli_query($mysqli, "SELECT 1 FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'settings' AND COLUMN_NAME = 'config_guest_link_days' LIMIT 1");
|
||||
if (!$itflow_column_exists || mysqli_num_rows($itflow_column_exists) === 0) {
|
||||
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_guest_link_days` smallint(5) NOT NULL DEFAULT 90 AFTER `config_share_require_protection`");
|
||||
}
|
||||
|
||||
mysqli_query($mysqli, "CREATE TABLE IF NOT EXISTS `email_templates` (
|
||||
`email_template_key` varchar(50) NOT NULL,
|
||||
`email_template_subject` varchar(255) DEFAULT NULL,
|
||||
`email_template_title` varchar(255) DEFAULT NULL,
|
||||
`email_template_intro` text DEFAULT NULL,
|
||||
`email_template_after` text DEFAULT NULL,
|
||||
`email_template_updated_by` int(11) NOT NULL DEFAULT 0,
|
||||
`email_template_updated_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`email_template_key`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci");
|
||||
Reference in New Issue
Block a user