34 lines
587 B
PHP
34 lines
587 B
PHP
<?php
|
|
|
|
use Phinx\Seed\AbstractSeed;
|
|
|
|
class RelacionInmobiliariasSeeder extends AbstractSeed
|
|
{
|
|
public function run(): void
|
|
{
|
|
$data = [
|
|
[
|
|
'id' => 1,
|
|
'padre' => 76309587,
|
|
'hijo' => 76309592,
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'padre' => 76837020,
|
|
'hijo' => 76309587,
|
|
],
|
|
[
|
|
'id' => 3,
|
|
'padre' => 76231860,
|
|
'hijo' => 76309587,
|
|
],
|
|
];
|
|
|
|
$this->execute('SET unique_checks=0; SET foreign_key_checks=0;');
|
|
$this->table('relacion_inmobiliarias')
|
|
->insert($data)
|
|
->saveData();
|
|
$this->execute('SET unique_checks=1; SET foreign_key_checks=1;');
|
|
}
|
|
}
|