fix: refs #5186 set editorFk
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-02-21 11:36:40 +01:00
parent 742a6370c2
commit c5d7943800
1 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ CREATE OR REPLACE TABLE `parkingLog` (
`description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
`changedModel` enum('Parking') NOT NULL DEFAULT 'Parking',
`changedModel` enum('Parking','SaleGroup','SaleGroupDetail') NOT NULL DEFAULT 'Parking',
`oldInstance` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`oldInstance`)),
@ -35,3 +35,7 @@ CREATE OR REPLACE TABLE `parkingLog` (
CONSTRAINT `parkingUserFk` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
ALTER TABLE IF EXISTS parking ADD COLUMN IF NOT EXISTS editorFk INT;
ALTER TABLE IF EXISTS SaleGroupDetail ADD COLUMN IF NOT EXISTS editorFk INT;