Skip to content

Commit

Permalink
Script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Oct 6, 2023
1 parent d0484b8 commit b772eb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 746 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,29 +369,7 @@ SELECT
'SPM_MIGRATION' as UPDATE_USER,
sysdate as UPDATE_DATE
FROM SCHOOL_MASTER schl_mast
WHERE TRIM(schl_mast.GRADE_12_IND ) = 'Y'
UNION
SELECT
LOWER(REGEXP_REPLACE(dbms_crypto.randombytes(16), '(.{8})(.{4})(.{4})(.{4})(.{12})', '\1-\2-\3-\4-\5')) as SCHOOL_GRADE_ID,
(SELECT schl.SCHOOL_ID from SCHOOL schl WHERE schl_mast.SCHLNO = schl.SCHOOL_NUMBER AND schl_mast.DISTNO = (SELECT dist.DISTRICT_NUMBER from DISTRICT dist WHERE schl.DISTRICT_ID = dist.DISTRICT_ID)) as SCHOOL_ID,
'ELEMUNGR' as SCHOOL_GRADE_CODE,
'SPM_MIGRATION' as CREATE_USER,
sysdate as CREATE_DATE,
'SPM_MIGRATION' as UPDATE_USER,
sysdate as UPDATE_DATE
FROM SCHOOL_MASTER schl_mast
WHERE TRIM(schl_mast.GRADE_EU_IND ) = 'Y'
UNION
SELECT
LOWER(REGEXP_REPLACE(dbms_crypto.randombytes(16), '(.{8})(.{4})(.{4})(.{4})(.{12})', '\1-\2-\3-\4-\5')) as SCHOOL_GRADE_ID,
(SELECT schl.SCHOOL_ID from SCHOOL schl WHERE schl_mast.SCHLNO = schl.SCHOOL_NUMBER AND schl_mast.DISTNO = (SELECT dist.DISTRICT_NUMBER from DISTRICT dist WHERE schl.DISTRICT_ID = dist.DISTRICT_ID)) as SCHOOL_ID,
'SECUNGR' as SCHOOL_GRADE_CODE,
'SPM_MIGRATION' as CREATE_USER,
sysdate as CREATE_DATE,
'SPM_MIGRATION' as UPDATE_USER,
sysdate as UPDATE_DATE
FROM SCHOOL_MASTER schl_mast
WHERE TRIM(schl_mast.GRADE_SU_IND ) = 'Y';
WHERE TRIM(schl_mast.GRADE_12_IND ) = 'Y';

CREATE TABLE NEIGHBORHOOD_LEARNING
as
Expand Down
229 changes: 0 additions & 229 deletions api/src/main/resources/scripts/SPM_Migration_2 - SLD Student Load.sql

This file was deleted.

Loading

0 comments on commit b772eb6

Please sign in to comment.