Files
thetool/db/migrations/20250723204001_CreateRmlWorkorderTables.php
2025-08-05 07:05:33 +00:00

14 lines
539 B
PHP

-- migration.sql
ALTER TABLE `RMLWorkorder` ADD `clusterId` INT NULL AFTER `companyId`;
CREATE TABLE `RMLWorkorderJournal` (
`id` int NOT NULL AUTO_INCREMENT,
`workorderId` int NOT NULL,
`text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`fileIds` json DEFAULT NULL,
`statusChange` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`create` int NOT NULL,
`createBy` int NOT NULL,
PRIMARY KEY (`id`),
KEY `workorderId` (`workorderId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;