mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
new folders
This commit is contained in:
parent
c78c1a3f08
commit
6ad93dff69
61 changed files with 146 additions and 97 deletions
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;");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue