calendar.js: save selected day start time
set the day start time to the last selecved value for each studio the user is assigned to.
This commit is contained in:
@@ -1308,3 +1308,30 @@ CREATE TABLE `calcms_user_selected_events` (
|
||||
ALTER TABLE `calcms`.`calcms_events`
|
||||
ADD COLUMN `upload_status` VARCHAR(45) NULL DEFAULT NULL AFTER `listen_key`;
|
||||
|
||||
--
|
||||
-- Table structure for table `calcms_user_day_start`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `calcms_user_day_start`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `calcms_user_day_start` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user` varchar(45) NOT NULL,
|
||||
`project_id` int(10) unsigned NOT NULL,
|
||||
`studio_id` int(10) unsigned NOT NULL,
|
||||
`day_start` int(10) unsigned DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `select` (`project_id`,`studio_id`,`user`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user