1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

new folders

This commit is contained in:
Nicolas Lœuillet 2015-01-20 07:40:39 +01:00
parent c78c1a3f08
commit 6ad93dff69
61 changed files with 146 additions and 97 deletions

View file

@ -0,0 +1,27 @@
<?php
use Phinx\Migration\AbstractMigration;
class InitDatabase extends AbstractMigration
{
/**
* Migrate Up.
*/
public function up()
{
$this->execute("CREATE TABLE IF NOT EXISTS `montest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
}
/**
* Migrate Down.
*/
public function down()
{
$this->execute("DROP DATABASE montest;");
}
}