wallabag/migrations/20150119171459_init_database.php
2015-01-20 07:50:50 +01:00

22 lines
411 B
PHP

<?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';");
}
}