mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 05:06:28 +00:00
22 lines
No EOL
411 B
PHP
22 lines
No EOL
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';");
|
|
}
|
|
} |