DB Update Added Null Default to new meshcentral vars so it doesnt break when adding records, Added Service History #384 Thank you @aftechro for the idea. This has been added to asset list and ticket details and some UI updates to ticket details as well

This commit is contained in:
johnnyq
2022-02-27 16:55:57 -05:00
parent 5063bdb854
commit f102c19692
5 changed files with 116 additions and 17 deletions

12
db.sql
View File

@@ -77,7 +77,7 @@ CREATE TABLE `assets` (
`asset_install_date` date DEFAULT NULL,
`asset_reciept` varchar(200) DEFAULT NULL,
`asset_notes` text DEFAULT NULL,
`asset_meshcentral_id` varchar(200) NOT NULL,
`client_meshcentral_group` varchar(200) DEFAULT NULL,
`asset_created_at` datetime NOT NULL,
`asset_updated_at` datetime DEFAULT NULL,
`asset_archived_at` datetime DEFAULT NULL,
@@ -239,7 +239,7 @@ CREATE TABLE `clients` (
`client_currency_code` varchar(200) NOT NULL,
`client_net_terms` int(10) NOT NULL,
`client_notes` text DEFAULT NULL,
`client_meshcentral_group` varchar(200) NOT NULL,
`client_meshcentral_group` varchar(200) DEFAULT NULL,
`client_created_at` datetime NOT NULL,
`client_updated_at` datetime DEFAULT NULL,
`client_archived_at` datetime DEFAULT NULL,
@@ -1116,9 +1116,9 @@ CREATE TABLE `settings` (
`config_stripe_enable` tinyint(1) DEFAULT NULL,
`config_stripe_publishable` varchar(255) DEFAULT NULL,
`config_stripe_secret` varchar(255) DEFAULT NULL,
`config_meshcentral_uri` varchar(200) NOT NULL,
`config_meshcentral_user` varchar(200) NOT NULL,
`config_meshcentral_secret` varchar(200) NOT NULL,
`config_meshcentral_uri` varchar(200) DEFAULT NULL,
`config_meshcentral_user` varchar(200) DEFAULT NULL,
`config_meshcentral_secret` varchar(200) DEFAULT NULL,
PRIMARY KEY (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1456,4 +1456,4 @@ CREATE TABLE `vendors` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-02-26 11:19:56
-- Dump completed on 2022-02-27 16:53:14