Kolejność wdrażania paczek:
REL01
    MARS-1049
    MARS-1049-ADHOC
    MARS-1056

REL02
    MARS-1046

-- Obecnie na środowisku DEV
REL01_ADDITIONS
    MARS-835-PREHOOK
    MARS-835
    MARS-826

-- AKtualnie pracuje nad:
    MARS-828s

-- Poniżej czeka na wdrożenie
REL03
    MARS-1057

'3.4.0 (2025-11-27): MARS-1057 - Added CREATE_EXTERNAL_TABLES_SET and CREATE_EXTERNAL_TABLES_BATCH procedures for batch external table creation' || CHR(13)||CHR(10) ||
'3.3.1 (2025-11-27): MARS-1046 - Fixed ISO 8601 datetime format parsing with milliseconds and timezone (e.g., 2012-03-02T14:16:23.798+01:00)' || CHR(13)||CHR(10) ||
'3.3.0 (2025-11-26): MARS-1056 - Fixed VARCHAR2 definitions in GENERATE_EXTERNAL_TABLE_PARAMS to preserve CHAR/BYTE semantics from template tables' || CHR(13)||CHR(10) ||
'3.2.1 (2025-11-24): MARS-1049 - Added pEncoding parameter support for CSV character set specification' || CHR(13)||CHR(10) ||


sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1049_adhoc.sql"
sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1049_adhoc.sql"

7z a -pMojeSuperHaslo#123 -mhe=on M49A_arch.7z MARS-1049-ADHOC/ 

7z a -pMojeSuperHaslo#123 -mhe=on M96_arch.7z MARS-1096/ 

cd .\MARS_Packages\REL01\MARS-1056
sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1056.sql"
sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1056.sql"

7z a -pMojeSuperHaslo#123 -mhe=on M1056_arch.7z MARS-1056/ 

New-Item -ItemType Directory -Force -Path "log" | Out-Null; Move-Item -Path "*.log" -Destination "log" -Force

cd .\MARS_Packages\REL02\MARS-1046
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1046.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1046.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1046_arch.7z MARS-1046/ 

cd .\MARS_Packages\REL01_ADDITIONS\MARS-826-PREHOOK
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars826_prehook.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars826_prehook.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M826PH_arch.7z MARS-826-PREHOOK

cd .\MARS_Packages\REL01_ADDITIONS\MARS-826
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars826.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars826.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M826_arch.7z MARS-826\

cd .\MARS_Packages\REL01_ADDITIONS\MARS-835
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars835.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars835.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M835_arch.7z MARS-835

cd .\MARS_Packages\REL01_ADDITIONS\MARS-835-PREHOOK
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars835_prehook.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars835_prehook.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M835PH_arch.7z MARS-835-PREHOOK


cd .\MARS_Packages\REL03\MARS-1057
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1057.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1057.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1057_arch.7z MARS-1057


cd .\MARS_Packages\REL01_ADDITIONS\MARS-828
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars828.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars828.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M828_arch.7z MARS-828\


cd .\MARS_Packages\REL02_POST\MARS-956
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars956.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars956.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M956_arch.7z MARS-956

cd .\MARS_Packages\migrations
Get-Content "004_add_missing_objects_from_export.sql" | sql "CT_MRDS/Cloudpass#34@ggmichalski_high"
# Dodano 9 brakujacych obiektow z eksportu CT_MRDS (2026-03-02)

cd .\MARS_Packages\REL02_POST\MARS-1409
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1409.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1409.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1409_arch.7z MARS-1409

cd MARS_Packages\REL02_POST\MARS-1409-POSTHOOK
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1409_posthook.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1409_posthook.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1409PH_arch.7z MARS-1409-POSTHOOK


cd .\MARS_Packages\REL03\MARS-1005
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1005.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1005.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1005_arch.7z MARS-1005

cd .\MARS_Packages\REL03\MARS-1005-PREHOOK
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@install_mars1005_prehook.sql"
echo 'yes' | sql "ADMIN/Cloudpass#34@ggmichalski_high" "@rollback_mars1005_prehook.sql"
7z a -pMojeSuperHaslo#123 -mhe=on M1005PH_arch.7z MARS-1005-PREHOOK

