|
@@ -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; |