Skip to content

Commit

Permalink
fix: ORV2-3352 - Set DB update metadata for v58 (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Jan 30, 2025
1 parent cd2b98c commit b55f430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions database/mssql/scripts/versions/revert/v_58_ddl_revert.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ DELETE FROM dbo.ORBC_TRAILER_TYPE WHERE TRAILER_TYPE='FEWHLPR';
DELETE FROM dbo.ORBC_TRAILER_TYPE WHERE TRAILER_TYPE='LOGLGCY';
*/

UPDATE dbo.ORBC_TRAILER_TYPE set [TYPE]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River',[DESCRIPTION]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River' where TRAILER_TYPE='FEWHLPR';
UPDATE dbo.ORBC_TRAILER_TYPE set [TYPE]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River',[DESCRIPTION]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER where TRAILER_TYPE='FEWHLPR';

UPDATE [dbo].[ORBC_POWER_UNIT_TYPE] set IS_ACTIVE='1' WHERE [POWER_UNIT_TYPE] IN ('CRAFTAT','CRAFTMB','FARMVEH');
UPDATE [dbo].[ORBC_POWER_UNIT_TYPE] set IS_ACTIVE='1',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER WHERE [POWER_UNIT_TYPE] IN ('CRAFTAT','CRAFTMB','FARMVEH');

UPDATE [dbo].[ORBC_TRAILER_TYPE] set IS_ACTIVE='1' WHERE [TRAILER_TYPE] IN ('FECVYPT');
UPDATE [dbo].[ORBC_TRAILER_TYPE] set IS_ACTIVE='1',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER WHERE [TRAILER_TYPE] IN ('FECVYPT');

-- Remove the newly added policy configuration
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
Expand Down
6 changes: 3 additions & 3 deletions database/mssql/scripts/versions/v_58_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ INSERT INTO dbo.ORBC_TRAILER_TYPE
VALUES
('LOGLGCY', 'Legacy Logging Trailer Combinations', 'Legacy Logging Trailer Combinations', 0);

UPDATE dbo.ORBC_TRAILER_TYPE set [TYPE]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River Only',[DESCRIPTION]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River Only' where TRAILER_TYPE='FEWHLPR';
UPDATE dbo.ORBC_TRAILER_TYPE set [TYPE]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River Only',[DESCRIPTION]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River Only',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER where TRAILER_TYPE='FEWHLPR';

UPDATE [dbo].[ORBC_POWER_UNIT_TYPE] set IS_ACTIVE='0' WHERE [POWER_UNIT_TYPE] IN ('CRAFTAT','CRAFTMB','FARMVEH');
UPDATE [dbo].[ORBC_POWER_UNIT_TYPE] set IS_ACTIVE='0',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER WHERE [POWER_UNIT_TYPE] IN ('CRAFTAT','CRAFTMB','FARMVEH');

UPDATE [dbo].[ORBC_TRAILER_TYPE] set IS_ACTIVE='0' WHERE [TRAILER_TYPE] IN ('FECVYPT');
UPDATE [dbo].[ORBC_TRAILER_TYPE] set IS_ACTIVE='0',DB_LAST_UPDATE_TIMESTAMP = GETUTCDATE(),DB_LAST_UPDATE_USERID = CURRENT_USER WHERE [TRAILER_TYPE] IN ('FECVYPT');

-- Insert updated configuration for LCV
INSERT [dbo].[ORBC_POLICY_CONFIGURATION] (
Expand Down

0 comments on commit b55f430

Please sign in to comment.