Revisiones

This commit is contained in:
Juan Pablo Vial
2025-06-25 12:22:01 -04:00
parent ca1ed3f870
commit 9edf0d9120
8 changed files with 114 additions and 5 deletions

View File

@ -6,6 +6,13 @@ use Phinx\Seed\AbstractSeed;
class Comuna extends AbstractSeed
{
public function getDependencies(): array
{
return [
'Provincia',
];
}
/**
* Run Method.
*
@ -29,6 +36,9 @@ class Comuna extends AbstractSeed
if (str_contains($column, 'id')) {
return 'id';
}
if (str_contains($column, 'provincia')) {
return 'provincia';
}
return $column;
}, $columns);
$data = array_map(function ($row) use ($columns) {