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

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;');
}
}