公告板
版本库
活动
搜索
登录
java
/
talent-card
人才卡
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
又又又更新
shinnosuke
2026-08-18
69138ddcf4936098cb3b67688412badfc8f503a0
[java/talent-card.git]
/
talent-card-server
/
src
/
main
/
resources
/
db
/
migration
/
V112__news_article_top_time_sorting.sql
1
2
3
4
5
6
7
alter table news_article
add column top_time datetime default null after is_top,
add key idx_news_article_top_time (top_time);
update news_article
set top_time = coalesce(updated_at, publish_time, created_at)
where is_top = 1 and top_time is null;