8 lines
901 B
PHP
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);
|