PDF reading with python
This commit is contained in:
36
api/db/seeds/TipoCuenta.php
Normal file
36
api/db/seeds/TipoCuenta.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
30
api/db/seeds/TipoEstadoConeccion.php
Normal file
30
api/db/seeds/TipoEstadoConeccion.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user