HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/db/upgrade3.1.sql
ALTER TABLE `crm_contact`
add `assignedTo` char(30) NOT NULL AFTER `nextDate`,
add `ignoredBy` char(30) NOT NULL AFTER `assignedTo`;

ALTER TABLE `crm_contact` change `originID` `originAccount` varchar(255) NOT NULL;

-- DROP TABLE IF EXISTS `oa_attendstat`;
CREATE TABLE `oa_attendstat` (
  `id` mediumint NOT NULL AUTO_INCREMENT,
  `account` char(30) NOT NULL,
  `month` char(10) NOT NULL DEFAULT '',
  `normal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `late` decimal(12,2) NOT NULL DEFAULT 0.00,
  `early` decimal(12,2) NOT NULL DEFAULT 0.00,
  `absent` decimal(12,2) NOT NULL DEFAULT 0.00,
  `trip` decimal(12,2) NOT NULL DEFAULT 0.00,
  `paidLeave` decimal(12,2) NOT NULL DEFAULT 0.00,
  `unpaidLeave` decimal(12,2) NOT NULL DEFAULT 0.00,
  `timeOvertime` decimal(12,2) NOT NULL DEFAULT 0.00,
  `restOvertime` decimal(12,2) NOT NULL DEFAULT 0.00,
  `holidayOvertime` decimal(12,2) NOT NULL DEFAULT 0.00,
  `deserve` decimal(12,2) NOT NULL DEFAULT 0.00,
  `actual` decimal(12,2) NOT NULL DEFAULT 0.00,
  `status` char(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `account` (`account`),
  KEY `month` (`month`),
  KEY `status` (`status`),
  UNIQUE KEY `attend` (`month`,`account`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

ALTER TABLE `sys_category` ADD `users` text NOT NULL AFTER `replyID`; 
ALTER TABLE `sys_category` CHANGE `rights` `rights` varchar(255) NOT NULL DEFAULT '';

ALTER TABLE `sys_article` 
ADD `private` enum('0', '1') NOT NULL DEFAULT '0',
ADD `users` text NOT NULL,
ADD `groups` varchar(255) NOT NULL DEFAULT '';

ALTER TABLE `oa_doc` 
ADD `private` enum('0', '1') NOT NULL DEFAULT '0' AFTER `deleted`,
ADD `users` text NOT NULL AFTER `private`,
ADD `groups` varchar(255) NOT NULL DEFAULT '' AFTER `users`;

ALTER TABLE `oa_doclib` 
ADD `private` enum('0', '1') NOT NULL DEFAULT '0' AFTER `name`,
ADD `users` text NOT NULL AFTER `private`,
ADD `groups` varchar(255) NOT NULL DEFAULT '' AFTER `users`,
ADD `createdBy` varchar(30) NOT NULL AFTER `groups`,
ADD `createdDate` datetime NOT NULL AFTER `createdBy`,
ADD `editedBy` varchar(30) NOT NULL AFTER `createdDate`,
ADD `editedDate` datetime NOT NULL AFTER `editedBy`;

-- DROP TABLE IF EXISTS `oa_overtime`;
CREATE TABLE `oa_overtime` (
  `id` mediumint NOT NULL AUTO_INCREMENT,
  `year` char(4) NOT NULL,
  `begin` date NOT NULL,
  `end` date NOT NULL,
  `start` time NOT NULL,
  `finish` time NOT NULL,
  `hours` float(4,1) unsigned NOT NULL DEFAULT '0.0',
  `type` varchar(30) NOT NULL DEFAULT '',
  `desc` text NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT '',
  `createdBy` char(30) NOT NULL,
  `createdDate` datetime NOT NULL,
  `reviewedBy` char(30) NOT NULL,
  `reviewedDate` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `year` (`year`),
  KEY `type` (`type`),
  KEY `status` (`status`),
  KEY `createdBy` (`createdBy`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;