1
This commit is contained in:
22
_sql/add_security_id_field.sql
Normal file
22
_sql/add_security_id_field.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
-- ============================================
|
||||
-- 添加缺失字段到数据库表
|
||||
-- ============================================
|
||||
-- 创建时间: 2025-01-20
|
||||
-- 说明: 添加缺失的 securityId 字段以修复业务逻辑错误
|
||||
|
||||
-- ============================================
|
||||
-- 添加 securityId 字段到 job_postings 表
|
||||
-- ============================================
|
||||
-- 用途: 投递简历时的安全验证
|
||||
ALTER TABLE job_postings
|
||||
ADD COLUMN securityId VARCHAR(255) DEFAULT '' COMMENT '安全ID' AFTER encryptBossId;
|
||||
|
||||
-- 添加索引(可选,提升查询性能)
|
||||
CREATE INDEX idx_securityId ON job_postings(securityId);
|
||||
|
||||
-- ============================================
|
||||
-- 说明
|
||||
-- ============================================
|
||||
-- 如果字段已存在,执行 ALTER TABLE 会报错,可以忽略
|
||||
-- 执行前建议先备份数据库
|
||||
-- 注意: resume_info 表的 updated_time 字段由框架自动管理,无需手动添加
|
||||
Reference in New Issue
Block a user