aboutsummaryrefslogblamecommitdiffhomepage
path: root/migrations/20150119171459_init_database.php
blob: 35fc9e07f877a53fa97d23a8ba60d349c1a54e50 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                                            
 




                        
                                                                                  






                          
                                                                                   

     
<?php

use Phinx\Migration\AbstractMigration;

class InitDatabase extends AbstractMigration
{
    /**
     * Migrate Up.
     */
    public function up()
    {
        $this->execute("INSERT INTO config (name, value) VALUES ('foo', 'bar');");
    }

    /**
     * Migrate Down.
     */
    public function down()
    {
        $this->execute("DELETE FROM config WHERE name = 'foo' AND value = 'bar';");
    }
}