Browse Source

chore: auto bump version and changelog [skip ci]

iwt 2 months ago
parent
commit
9d4f088fc7

+ 6 - 1
cfc-backend/src/main/java/com/etotem/cfc/config/DatabaseInitializer.java

@@ -8786,4 +8786,9 @@ private void runMigration100() {
 			log.warn("创建file_tag_rel表失败: " + e.getMessage());
 			log.warn("创建file_tag_rel表失败: " + e.getMessage());
 		}
 		}
 	}
 	}
-}
+
+		// 迁移228: file_record 添加 file_type 和 description 列
+		ensureColumn("file_record", "file_type", "VARCHAR(50) DEFAULT NULL COMMENT '文件类型(image/video/doc/etc)'");
+		ensureColumn("file_record", "description", "TEXT COMMENT '文件描述'");
+		log.info("已添加file_record.file_type和description列");
+	}

+ 2 - 0
cfc-backend/src/main/java/com/etotem/cfc/entity/FileRecord.java

@@ -18,6 +18,8 @@ public class FileRecord implements Serializable {
     private String contentType;
     private String contentType;
     private String originalFilename;
     private String originalFilename;
     private String category;
     private String category;
+    private String fileType;
+    private String description;
     private Date createdAt;
     private Date createdAt;
     private Date updatedAt;
     private Date updatedAt;
 }
 }

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-52d9bda8ad7daa9a769b44763a89782923dc4e67
+7380aa528abecddf486fd706546afc2ecbbbdd2a