37 lines
744 B
PHP
37 lines
744 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
use Phinx\Seed\AbstractSeed;
|
||
|
|
||
|
class TipoCuenta 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' => 'Ganancia'
|
||
|
],
|
||
|
[
|
||
|
'descripcion' => 'Activo'
|
||
|
],
|
||
|
[
|
||
|
'descripcion' => 'Pasivo'
|
||
|
],
|
||
|
[
|
||
|
'descripcion' => 'Perdida'
|
||
|
]
|
||
|
];
|
||
|
$this->table('tipos_cuenta')
|
||
|
->insert($data)
|
||
|
->saveData();
|
||
|
}
|
||
|
}
|