mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Implement freeze
This commit is contained in:
parent
f890fdc2d3
commit
ae7c82ef73
@ -113,6 +113,7 @@ CREATE TABLE `customfieldvalue` (
|
|||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`value` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`value` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||||
`user_id` int(11) unsigned DEFAULT NULL,
|
`user_id` int(11) unsigned DEFAULT NULL,
|
||||||
|
`staff_id` int(11) unsigned DEFAULT NULL,
|
||||||
`customfield_id` int(11) unsigned DEFAULT NULL,
|
`customfield_id` int(11) unsigned DEFAULT NULL,
|
||||||
`customfieldoption_id` int(11) unsigned DEFAULT NULL,
|
`customfieldoption_id` int(11) unsigned DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
@ -157,6 +158,25 @@ CREATE TABLE `department` (
|
|||||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `department_user`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `department_user`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `department_user` (
|
||||||
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`department_id` int(11) unsigned DEFAULT NULL,
|
||||||
|
`user_id` int(11) unsigned DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `index_foreignkey_department_staff_department` (`department_id`),
|
||||||
|
KEY `index_foreignkey_department_staff_staff` (`user_id`),
|
||||||
|
CONSTRAINT `c_fk_department_user_department_id` FOREIGN KEY (`department_id`) REFERENCES `department` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
|
CONSTRAINT `c_fk_department_user_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `department_staff`
|
-- Table structure for table `department_staff`
|
||||||
--
|
--
|
||||||
|
@ -11,8 +11,7 @@ if(defined('MYSQL_HOST') && defined('MYSQL_DATABASE') && defined('MYSQL_USER') &
|
|||||||
if(!defined('MYSQL_PORT')) define('MYSQL_PORT', '3306');
|
if(!defined('MYSQL_PORT')) define('MYSQL_PORT', '3306');
|
||||||
RedBean::setup('mysql:host='. MYSQL_HOST . ';port=' . MYSQL_PORT . ';dbname=' . MYSQL_DATABASE , MYSQL_USER, MYSQL_PASSWORD);
|
RedBean::setup('mysql:host='. MYSQL_HOST . ';port=' . MYSQL_PORT . ';dbname=' . MYSQL_DATABASE , MYSQL_USER, MYSQL_PASSWORD);
|
||||||
RedBean::setAutoResolve(true);
|
RedBean::setAutoResolve(true);
|
||||||
// TODO: Implement freeze
|
RedBean::freeze();
|
||||||
// RedBean::freeze();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SLIM FRAMEWORK
|
// SLIM FRAMEWORK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user