forked from wallabag/wallabag
new folders
This commit is contained in:
27
migrations/20150119171459_init_database.php
Normal file
27
migrations/20150119171459_init_database.php
Normal 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;");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user