Seeds corregidas

This commit is contained in:
Juan Pablo Vial
2024-12-18 20:30:24 -03:00
parent fdb9dcf9be
commit d3df35daff
5 changed files with 569 additions and 566 deletions

View File

@ -502,6 +502,9 @@ use Phinx\Seed\AbstractSeed;
if ($value === null) {
$value = 'null';
}
if (strlen($value) > 2 and str_starts_with($value, '0')) {
$value = "'{$value}'";
}
$output []= "\t\t\t\t'{$key}' => {$value},";
}
$output []= "\t\t\t],";