Sfoglia il codice sorgente

insert grade+position+team log record

add_swagger
MSI\derek 10 mesi fa
parent
commit
6af823fc91
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  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 Vedi File

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

Caricamento…
Annulla
Salva