aboutsummaryrefslogtreecommitdiffhomepage
path: root/migrations/20150119171459_init_database.php
blob: 35fc9e07f877a53fa97d23a8ba60d349c1a54e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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';");
    }
}