Files
PayrollManagementSystem/db/migration/V21__automation_phase_default.sql
T

3 lines
268 B
SQL
Raw Normal View History

-- 修正V20状态默认值的额外引号;不改历史业务、工资或核算数据。
ALTER TABLE tplus_automation_states ALTER COLUMN worker_phase SET DEFAULT 'STOPPED';
UPDATE tplus_automation_states SET worker_phase='STOPPED' WHERE worker_phase='''STOPPED''';