seed to phinx
<?php
use Phinx\Seed\AbstractSeed;
class UrlAliasSeeder extends AbstractSeed
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
{
$data = [
[
'query' => 'information/contacts',
'keyword' => 'kontakt'
],
[
'query' => 'information/wholesale',
'keyword' => 'optovikam'
]
];
$table = $this->table('oc_url_alias');
$table->insert($data)->save();
}
}