IdentifiersSeeder.php 577 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php

use Phinx\Seed\AbstractSeed;

class IdentifiersSeeder 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 = array(
            array(
                'expiration' => '2016-06-10 12:34',
                'user_id' => 1,
		'identifier' => 'id1',
            )
        );

        $this->table('identifiers')->insert($data)->save();
    }
}