- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.117.141.116
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/public_html/mesa/include/upgrader/streams/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/public_html/mesa/include/upgrader/streams/core/e7dfe821-70921d5c.patch.sql
/**
* @signature 70921d5c3920ab240b08bdd55bc894c8
* @version v1.11.0
* @title Make Public CustomQueues Configurable
*
* This patch adds staff_id to queue_columns table and queue_config table to
* allow for ability to customize public queue columns as well as additional
* settings
*
*/

-- Add staff_id to queue_columns table
ALTER TABLE `%TABLE_PREFIX%queue_columns`
    ADD `staff_id` int(11) unsigned NOT NULL AFTER  `column_id`;

-- Set staff_id to 0 for default columns
UPDATE `%TABLE_PREFIX%queue_columns`
    SET `staff_id` = 0;

-- Add staff_id to PRIMARY KEY
ALTER TABLE `%TABLE_PREFIX%queue_columns`
    DROP PRIMARY KEY,
    ADD PRIMARY KEY (`queue_id`, `column_id`, `staff_id`);

-- Set staff_id to 0 for public queues
UPDATE `%TABLE_PREFIX%queue`
    SET `staff_id` = 0
    WHERE (`flags` & 1) >0;

-- Add bridge table for public Queues staff configuration & settings
DROP TABLE IF EXISTS `%TABLE_PREFIX%queue_config`;
CREATE TABLE `%TABLE_PREFIX%queue_config` (
  `queue_id` int(11) unsigned NOT NULL,
  `staff_id` int(11) unsigned NOT NULL,
  `setting` text,
  `updated` datetime NOT NULL,
  PRIMARY KEY (`queue_id`,`staff_id`)
) DEFAULT CHARSET=utf8;

 -- Finished with patch
UPDATE `%TABLE_PREFIX%config`
    SET `value` = '70921d5c3920ab240b08bdd55bc894c8'
    WHERE `key` = 'schema_signature' AND `namespace` = 'core';

Youez - 2016 - github.com/yon3zu
LinuXploit