build: ver_0.338 - bugfix duplikaty zamowien + status COD

This commit is contained in:
Jacek
2026-03-12 11:04:43 +01:00
parent a1b60c1f25
commit 5a58ab17e7
6 changed files with 151 additions and 118 deletions

View File

@@ -259,7 +259,7 @@ if (-not $ChangelogEntry) {
# --- 8. Tworzenie temp i kopiowanie plikow ---
$tempDir = "temp/temp_$versionInt"
$tempDir = "$env:TEMP\shopPRO_build_$versionInt"
if (Test-Path $tempDir) {
Remove-Item -Recurse -Force $tempDir
@@ -301,15 +301,16 @@ if (Test-Path $zipPath) {
# Pakuj zawartosc temp dir (bez folderu temp/)
$originalLocation = Get-Location
$absoluteZipPath = Join-Path $originalLocation $zipPath
Set-Location $tempDir
$tempItems = Get-ChildItem -Force
if ($tempItems) {
Compress-Archive -Path '*' -DestinationPath "../../$zipPath" -Force
Compress-Archive -Path '*' -DestinationPath $absoluteZipPath -Force
} else {
# SQL-only update: create minimal ZIP with empty placeholder
$placeholderPath = "_sql_only_update.txt"
Set-Content -Path $placeholderPath -Value "SQL-only update $versionNumber"
Compress-Archive -Path $placeholderPath -DestinationPath "../../$zipPath" -Force
Compress-Archive -Path $placeholderPath -DestinationPath $absoluteZipPath -Force
Remove-Item $placeholderPath -Force
}
Set-Location $originalLocation

BIN
updates/0.30/ver_0.338.zip Normal file

Binary file not shown.

View File

@@ -0,0 +1,26 @@
{
"changelog": "Bugfix: duplikaty zamowien i status platnosci przy odbiorze (is_cod)",
"version": "0.338",
"files": {
"added": [
],
"deleted": [
],
"modified": [
"autoload/Domain/Order/OrderRepository.php",
"autoload/Domain/PaymentMethod/PaymentMethodRepository.php",
"autoload/admin/Controllers/ShopPaymentMethodController.php",
"autoload/front/Controllers/ShopBasketController.php"
]
},
"checksum_zip": "sha256:a7c16887d9eb6d4ad672b4cf038d5e85ae862ff2f5ffdf3a24b4e62e2edeb30b",
"sql": [
"ALTER TABLE `pp_shop_payment_methods`\n ADD COLUMN `is_cod` TINYINT(1) NOT NULL DEFAULT 0\n COMMENT \u0027Platnosc przy odbiorze (cash on delivery): 1 = tak, 0 = nie\u0027"
],
"date": "2026-03-12",
"directories_deleted": [
]
}

View File

@@ -0,0 +1,3 @@
ALTER TABLE `pp_shop_payment_methods`
ADD COLUMN `is_cod` TINYINT(1) NOT NULL DEFAULT 0
COMMENT 'Platnosc przy odbiorze (cash on delivery): 1 = tak, 0 = nie'

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
<?
$current_ver = 337;
$current_ver = 338;
for ($i = 1; $i <= $current_ver; $i++)
{