Link assets to each other: a Linked assets card on the asset page with the link picker for any of the client's other assets, links kept both ways in asset_links (database 4.4.7) and written to both assets' History and the audit log, a menu on a linked asset at another site to move either one to the other's site, linked names on the assets list and quick look, links in the client export, and links kept between assets transferred to another client together; 26.12.6 changelog

This commit is contained in:
johnnyq
2026-12-05 02:24:14 -05:00
parent ac089c6af8
commit f750e3c00b
12 changed files with 395 additions and 3 deletions

19
db.sql
View File

@@ -374,6 +374,25 @@ CREATE TABLE `asset_interfaces` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `asset_links`
--
DROP TABLE IF EXISTS `asset_links`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `asset_links` (
`asset_id` int(11) NOT NULL,
`linked_asset_id` int(11) NOT NULL,
`asset_link_created_by` int(11) NOT NULL DEFAULT 0,
`asset_link_created_at` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`asset_id`,`linked_asset_id`),
KEY `asset_links_linked` (`linked_asset_id`),
CONSTRAINT `asset_links_asset` FOREIGN KEY (`asset_id`) REFERENCES `assets` (`asset_id`) ON DELETE CASCADE,
CONSTRAINT `asset_links_linked_asset` FOREIGN KEY (`linked_asset_id`) REFERENCES `assets` (`asset_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `asset_notes`
--