]>
Commit | Line | Data |
---|---|---|
6ad93dff NL |
1 | <?php |
2 | ||
3 | use Phinx\Migration\AbstractMigration; | |
4 | ||
5 | class InitDatabase extends AbstractMigration | |
8d6ff10e | 6 | { |
6ad93dff NL |
7 | /** |
8 | * Migrate Up. | |
9 | */ | |
10 | public function up() | |
11 | { | |
8d6ff10e | 12 | $this->execute("INSERT INTO config (name, value) VALUES ('foo', 'bar');"); |
6ad93dff NL |
13 | } |
14 | ||
15 | /** | |
16 | * Migrate Down. | |
17 | */ | |
18 | public function down() | |
19 | { | |
8d6ff10e | 20 | $this->execute("DELETE FROM config WHERE name = 'foo' AND value = 'bar';"); |
6ad93dff NL |
21 | } |
22 | } |