Files
oficial/app/resources/database/seeds/20141101080140_unidad_bloqueada_seeder.php
2024-12-18 20:33:15 -03:00

334 lines
4.5 KiB
PHP

<?php
use Phinx\Seed\AbstractSeed;
class UnidadBloqueadaSeeder extends AbstractSeed
{
public function run(): void
{
$data = [
[
'id' => 3,
'agente' => 62,
'unidad' => 1263,
],
[
'id' => 4,
'agente' => 62,
'unidad' => 239,
],
[
'id' => 5,
'agente' => 62,
'unidad' => 29,
],
[
'id' => 6,
'agente' => 62,
'unidad' => 107,
],
[
'id' => 7,
'agente' => 62,
'unidad' => 265,
],
[
'id' => 8,
'agente' => 62,
'unidad' => 108,
],
[
'id' => 9,
'agente' => 62,
'unidad' => 161,
],
[
'id' => 10,
'agente' => 62,
'unidad' => 1248,
],
[
'id' => 11,
'agente' => 62,
'unidad' => 242,
],
[
'id' => 12,
'agente' => 62,
'unidad' => 244,
],
[
'id' => 13,
'agente' => 62,
'unidad' => 113,
],
[
'id' => 14,
'agente' => 62,
'unidad' => 115,
],
[
'id' => 15,
'agente' => 62,
'unidad' => 195,
],
[
'id' => 16,
'agente' => 62,
'unidad' => 273,
],
[
'id' => 17,
'agente' => 62,
'unidad' => 116,
],
[
'id' => 18,
'agente' => 62,
'unidad' => 142,
],
[
'id' => 19,
'agente' => 62,
'unidad' => 196,
],
[
'id' => 20,
'agente' => 62,
'unidad' => 13,
],
[
'id' => 21,
'agente' => 62,
'unidad' => 39,
],
[
'id' => 22,
'agente' => 62,
'unidad' => 117,
],
[
'id' => 23,
'agente' => 62,
'unidad' => 275,
],
[
'id' => 24,
'agente' => 62,
'unidad' => 118,
],
[
'id' => 25,
'agente' => 62,
'unidad' => 198,
],
[
'id' => 26,
'agente' => 62,
'unidad' => 225,
],
[
'id' => 27,
'agente' => 62,
'unidad' => 16,
],
[
'id' => 28,
'agente' => 62,
'unidad' => 120,
],
[
'id' => 29,
'agente' => 62,
'unidad' => 200,
],
[
'id' => 30,
'agente' => 62,
'unidad' => 147,
],
[
'id' => 31,
'agente' => 71,
'unidad' => 185,
],
[
'id' => 32,
'agente' => 71,
'unidad' => 186,
],
[
'id' => 33,
'agente' => 71,
'unidad' => 187,
],
[
'id' => 34,
'agente' => 71,
'unidad' => 56,
],
[
'id' => 35,
'agente' => 71,
'unidad' => 188,
],
[
'id' => 36,
'agente' => 71,
'unidad' => 57,
],
[
'id' => 37,
'agente' => 71,
'unidad' => 189,
],
[
'id' => 38,
'agente' => 71,
'unidad' => 6,
],
[
'id' => 39,
'agente' => 71,
'unidad' => 243,
],
[
'id' => 40,
'agente' => 71,
'unidad' => 59,
],
[
'id' => 41,
'agente' => 71,
'unidad' => 192,
],
[
'id' => 42,
'agente' => 71,
'unidad' => 9,
],
[
'id' => 43,
'agente' => 71,
'unidad' => 246,
],
[
'id' => 44,
'agente' => 71,
'unidad' => 64,
],
[
'id' => 45,
'agente' => 71,
'unidad' => 196,
],
[
'id' => 46,
'agente' => 71,
'unidad' => 118,
],
[
'id' => 47,
'agente' => 71,
'unidad' => 67,
],
[
'id' => 48,
'agente' => 71,
'unidad' => 199,
],
[
'id' => 49,
'agente' => 71,
'unidad' => 146,
],
[
'id' => 50,
'agente' => 71,
'unidad' => 200,
],
[
'id' => 51,
'agente' => 71,
'unidad' => 121,
],
[
'id' => 52,
'agente' => 71,
'unidad' => 254,
],
[
'id' => 53,
'agente' => 71,
'unidad' => 203,
],
[
'id' => 54,
'agente' => 71,
'unidad' => 230,
],
[
'id' => 55,
'agente' => 71,
'unidad' => 46,
],
[
'id' => 56,
'agente' => 71,
'unidad' => 72,
],
[
'id' => 57,
'agente' => 71,
'unidad' => 204,
],
[
'id' => 58,
'agente' => 71,
'unidad' => 74,
],
[
'id' => 59,
'agente' => 71,
'unidad' => 23,
],
[
'id' => 60,
'agente' => 71,
'unidad' => 49,
],
[
'id' => 61,
'agente' => 71,
'unidad' => 75,
],
[
'id' => 62,
'agente' => 71,
'unidad' => 153,
],
[
'id' => 63,
'agente' => 71,
'unidad' => 77,
],
[
'id' => 64,
'agente' => 71,
'unidad' => 209,
],
[
'id' => 65,
'agente' => 71,
'unidad' => 236,
],
];
$this->execute('SET unique_checks=0; SET foreign_key_checks=0;');
$this->table('unidad_bloqueada')
->insert($data)
->saveData();
$this->execute('SET unique_checks=1; SET foreign_key_checks=1;');
}
}