31 lines
620 B
PHP
31 lines
620 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
use Phinx\Seed\AbstractSeed;
|
||
|
|
||
|
class TipoEstadoConeccion extends AbstractSeed
|
||
|
{
|
||
|
/**
|
||
|
* Run Method.
|
||
|
*
|
||
|
* Write your database seeder using this method.
|
||
|
*
|
||
|
* More information on writing seeders is available here:
|
||
|
* https://book.cakephp.org/phinx/0/en/seeding.html
|
||
|
*/
|
||
|
public function run()
|
||
|
{
|
||
|
$data = [
|
||
|
[
|
||
|
'descripcion' => 'Activa'
|
||
|
],
|
||
|
[
|
||
|
'descripcion' => 'Inactiva'
|
||
|
]
|
||
|
];
|
||
|
$this->table('tipos_estado_coneccion')
|
||
|
->insert($data)
|
||
|
->saveData();
|
||
|
}
|
||
|
}
|