From 3dd3e106dc22a30760d30085382ed4b7820cc175 Mon Sep 17 00:00:00 2001 From: Agent Date: Sat, 4 Apr 2026 07:19:55 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=BC=BA=E5=B0=91description=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/building/entity/Category.java | 5 +++++ .../resources/db/migration/V15__add_category_description.sql | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 src/main/resources/db/migration/V15__add_category_description.sql diff --git a/src/main/java/com/example/building/entity/Category.java b/src/main/java/com/example/building/entity/Category.java index f854074..494c54d 100644 --- a/src/main/java/com/example/building/entity/Category.java +++ b/src/main/java/com/example/building/entity/Category.java @@ -36,6 +36,11 @@ public class Category { */ private String icon; + /** + * 描述 + */ + private String description; + /** * 状态: 1启用 0禁用 */ diff --git a/src/main/resources/db/migration/V15__add_category_description.sql b/src/main/resources/db/migration/V15__add_category_description.sql new file mode 100644 index 0000000..156bf5d --- /dev/null +++ b/src/main/resources/db/migration/V15__add_category_description.sql @@ -0,0 +1,2 @@ +-- 添加分类描述字段 +ALTER TABLE categories ADD COLUMN IF NOT EXISTS description TEXT;