Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/croogo/croogo/Meta/config/Seeds/MetaSeed.php
<?php

use Phinx\Seed\AbstractSeed;

class
MetaSeed extends AbstractSeed
{

    public
$records = [

        [
           
'model' => '',
           
'key' => 'meta_description',
           
'value' => 'Croogo - A CakePHP powered Content Management System',
           
'created_by' => 1,
        ],
        [
           
'model' => '',
           
'key' => 'meta_generator',
           
'value' => 'Croogo - Content Management System',
           
'created_by' => 1,
        ],
        [
           
'model' => '',
           
'key' => 'meta_robots',
           
'value' => 'index, follow',
           
'created_by' => 1,
        ],
        [
           
'model' => 'Croogo/Nodes.Nodes',
           
'foreign_key' => '1',
           
'key' => 'meta_keywords',
           
'value' => 'key1, key2',
           
'created_by' => 1,
        ],
    ];

    public function
run()
    {
       
$Table = $this->table('meta');
       
$Table->insert($this->records)->save();
    }

}