$ bin/phpmig generate Example
[PDOException]
SQLSTATE[HY000]: General error: 2812 General SQL Server error: Check messages from the SQL Server [2812] (severity 16) [SHOW TABLES;]
// phpmig/src/Phpmig/Adapter/PDO/Sql.php
case 'mysql':
default:
$queries = array(
'fetchAll' => "SELECT `version` FROM {$this->quotedTableName()} ORDER BY `version` ASC",
'up' => "INSERT into {$this->quotedTableName()} set version = :version",
'down' => "DELETE from {$this->quotedTableName()} where version = :version",
'hasSchema' => "SHOW TABLES;",
'createSchema' => "CREATE TABLE {$this->quotedTableName()} (`version` VARCHAR(255) NOT NULL);",
);
break;
after
$ bin/phpmig generate Example
+f ./migrations/20170106114835_Example.php
environment
before
after
reference