This commit is contained in:
王鹏
2025-08-14 14:43:47 +08:00
commit a8bd6c53be
714 changed files with 79106 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
-- Update template file table structure to replace file_path with module_id
-- Add module_id column
ALTER TABLE sys_template_file ADD COLUMN module_id bigint(20) NULL COMMENT '功能模块ID' AFTER file_name;
-- Drop file_path column (optional, can be kept for compatibility if needed)
-- ALTER TABLE sys_template_file DROP COLUMN file_path;
-- Add foreign key constraint (optional)
-- ALTER TABLE sys_template_file ADD CONSTRAINT fk_template_module FOREIGN KEY (module_id) REFERENCES sys_module (module_id);
-- Example data migration (if needed)
-- UPDATE sys_template_file SET module_id = 1 WHERE file_path LIKE '%/module1/%';
-- UPDATE sys_template_file SET module_id = 2 WHERE file_path LIKE '%/module2/%';