]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - migrations/20150119171459_init_database.php
finally fix phpunit and travis?
[github/wallabag/wallabag.git] / migrations / 20150119171459_init_database.php
... / ...
CommitLineData
1<?php
2
3use Phinx\Migration\AbstractMigration;
4
5class InitDatabase extends AbstractMigration
6{
7 /**
8 * Migrate Up.
9 */
10 public function up()
11 {
12 $this->execute("INSERT INTO config (name, value) VALUES ('foo', 'bar');");
13 }
14
15 /**
16 * Migrate Down.
17 */
18 public function down()
19 {
20 $this->execute("DELETE FROM config WHERE name = 'foo' AND value = 'bar';");
21 }
22}