feat: 改为移动端用户一键签到
This commit is contained in:
18
sql/migration_outdoor_fair_attendee_user.test-executed.sql
Normal file
18
sql/migration_outdoor_fair_attendee_user.test-executed.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- 执行状态:测试环境已执行
|
||||
-- 测试环境:test
|
||||
-- 测试执行时间:2026-07-24 10:16:38 +0800
|
||||
-- 正式环境:未执行
|
||||
|
||||
-- 户外招聘会签到记录关联移动端用户
|
||||
-- 历史签到记录 user_id 保持为空,仍使用原有快照字段展示。
|
||||
|
||||
ALTER TABLE shz.cms_outdoor_fair_attendee
|
||||
ADD COLUMN IF NOT EXISTS user_id BIGINT;
|
||||
|
||||
COMMENT ON COLUMN shz.cms_outdoor_fair_attendee.user_id IS '移动端用户ID';
|
||||
|
||||
DROP INDEX IF EXISTS shz.uk_cms_outdoor_fair_attendee_user;
|
||||
|
||||
CREATE UNIQUE INDEX uk_cms_outdoor_fair_attendee_user
|
||||
ON shz.cms_outdoor_fair_attendee (fair_id, user_id)
|
||||
WHERE user_id IS NOT NULL AND del_flag = '0';
|
||||
Reference in New Issue
Block a user