MSI\2Fi 10 달 전
부모
커밋
c6200c53bb
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. +11
    -0
      src/main/resources/db/changelog/changes/20241904_01_derek/01_insertGradeLog.sql

+ 11
- 0
src/main/resources/db/changelog/changes/20241904_01_derek/01_insertGradeLog.sql 파일 보기

@@ -0,0 +1,11 @@
-- liquibase formatted sql
-- changeset derek:insert grade_log, position_log, team_log
insert into grade_log(`staffId`, `gradeId`, `from`)
select s.id, s.gradeId, "2012-01-01" from staff s;


insert into position_log(`staffId`, `positionId`, `from`)
select s.id, s.currentPosition, "2012-01-01" from staff s;

insert into team_log(`staffId`, `teamId`, `from`)
select s.id, s.teamId, "2012-01-01" from staff s where s.teamId is not null;

불러오는 중...
취소
저장