Files
Investidor-V2/outputs/investmoz-parques-QA-20261016/prove-down-refusal.php
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

8 lines
901 B
PHP

<?php
require __DIR__.'/boot-QA.php';
$migration=require $source.'/database/migrations/2026_10_16_130000_add_investment_zone_editorial_draft.php';
$before=Illuminate\Support\Facades\DB::table('investment_zones')->whereNotNull('editorial_draft')->count();
try{$migration->down();throw new LogicException('Destructive down was not refused');}catch(RuntimeException $e){if(!str_contains($e->getMessage(),'preservar coluna'))throw $e;$message=$e->getMessage();}
$record=['target'=>$target,'refused'=>true,'message'=>$message,'column_preserved'=>Illuminate\Support\Facades\Schema::hasColumn('investment_zones','editorial_draft'),'draft_count_preserved'=>Illuminate\Support\Facades\DB::table('investment_zones')->whereNotNull('editorial_draft')->count()===$before];
file_put_contents(__DIR__.'/DOWN-RECUSADO-QA.json',json_encode($record,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE));echo json_encode($record);