139 lines
2.2 KiB
PHP
139 lines
2.2 KiB
PHP
<?php
|
|
|
|
use Phinx\Seed\AbstractSeed;
|
|
|
|
class ActionSeeder extends AbstractSeed
|
|
{
|
|
public function run(): void
|
|
{
|
|
$data = [
|
|
[
|
|
'id' => 1,
|
|
'description' => 'viewHome',
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'description' => 'viewInformesContabilidad',
|
|
],
|
|
[
|
|
'id' => 3,
|
|
'description' => 'viewInformeVentas',
|
|
],
|
|
[
|
|
'id' => 4,
|
|
'description' => 'buscar',
|
|
],
|
|
[
|
|
'id' => 5,
|
|
'description' => 'ajax',
|
|
],
|
|
[
|
|
'id' => 6,
|
|
'description' => 'admin',
|
|
],
|
|
[
|
|
'id' => 7,
|
|
'description' => 'listProyectos',
|
|
],
|
|
[
|
|
'id' => 8,
|
|
'description' => 'addProyecto',
|
|
],
|
|
[
|
|
'id' => 9,
|
|
'description' => 'viewProyecto',
|
|
],
|
|
[
|
|
'id' => 10,
|
|
'description' => 'avanzarProyecto',
|
|
],
|
|
[
|
|
'id' => 11,
|
|
'description' => 'listInmobiliarias',
|
|
],
|
|
[
|
|
'id' => 12,
|
|
'description' => 'addInmobiliaria',
|
|
],
|
|
[
|
|
'id' => 13,
|
|
'description' => 'showInmobiliaria',
|
|
],
|
|
[
|
|
'id' => 14,
|
|
'description' => 'editInmobiliaria',
|
|
],
|
|
[
|
|
'id' => 15,
|
|
'description' => 'evaluarCierre',
|
|
],
|
|
[
|
|
'id' => 16,
|
|
'description' => 'viewCuotasPendientes',
|
|
],
|
|
[
|
|
'id' => 17,
|
|
'description' => 'addCuota',
|
|
],
|
|
[
|
|
'id' => 18,
|
|
'description' => 'showCuota',
|
|
],
|
|
[
|
|
'id' => 19,
|
|
'description' => 'editCuota',
|
|
],
|
|
[
|
|
'id' => 20,
|
|
'description' => 'removeCuota',
|
|
],
|
|
[
|
|
'id' => 21,
|
|
'description' => 'viewPie',
|
|
],
|
|
[
|
|
'id' => 22,
|
|
'description' => 'listPagosPendientes',
|
|
],
|
|
[
|
|
'id' => 23,
|
|
'description' => 'editPago',
|
|
],
|
|
[
|
|
'id' => 24,
|
|
'description' => 'listVentas',
|
|
],
|
|
[
|
|
'id' => 25,
|
|
'description' => 'consolidacionVentas',
|
|
],
|
|
[
|
|
'id' => 26,
|
|
'description' => 'showVenta',
|
|
],
|
|
[
|
|
'id' => 27,
|
|
'description' => 'ventas',
|
|
],
|
|
[
|
|
'id' => 28,
|
|
'description' => 'inmobiliarias',
|
|
],
|
|
[
|
|
'id' => 29,
|
|
'description' => 'proyectos',
|
|
],
|
|
[
|
|
'id' => 30,
|
|
'description' => 'viewHerramientas',
|
|
],
|
|
];
|
|
|
|
$this->execute('SET unique_checks=0; SET foreign_key_checks=0;');
|
|
$this->table('action')
|
|
->insert($data)
|
|
->saveData();
|
|
$this->execute('SET unique_checks=1; SET foreign_key_checks=1;');
|
|
}
|
|
}
|