wallabag/migrations/20150119171459_init_database.php

22 lines
411 B
PHP
Raw Normal View History

2015-01-20 06:40:39 +00:00
<?php
use Phinx\Migration\AbstractMigration;
class InitDatabase extends AbstractMigration
2015-01-20 06:50:50 +00:00
{
2015-01-20 06:40:39 +00:00
/**
* Migrate Up.
*/
public function up()
{
2015-01-20 06:50:50 +00:00
$this->execute("INSERT INTO config (name, value) VALUES ('foo', 'bar');");
2015-01-20 06:40:39 +00:00
}
/**
* Migrate Down.
*/
public function down()
{
2015-01-20 06:50:50 +00:00
$this->execute("DELETE FROM config WHERE name = 'foo' AND value = 'bar';");
2015-01-20 06:40:39 +00:00
}
}