phinx icon indicating copy to clipboard operation
phinx copied to clipboard

Cannot create migrations in 0.3.x-dev

Open mcapodacqua opened this issue 11 years ago • 0 comments

Trying to create a migration with config file in .php I get

$vendor/bin/phinx create -c config/phinx.php MyMigration
Phinx by Rob Morgan - http://phinx.org. version 0.3.8

using config file ./config/phinx.php
using config parser php
using migration path /home/user/project/migrations



  [UnexpectedValueException]                          
  Migration base class name missing from config file  



create [-c|--configuration="..."] [-p|--parser="..."] name

My config file

<?php
return [
    "paths" => [
        "migrations" => "./migrations"
    ],
    "environments" => [
        "default_migration_table" => "phinxlog",
        "default_database" => "dev",
        "dev" => [
            "adapter" => 'mysql',
            "host" => 'localhost',
            "name" => 'project',
            "user" => 'root',
            "pass" => 'root',
            "charset" => 'utf8',
            "table_prefix" => 'p_',
        ]
    ]
];

The commands status, migrate and rollback worked.

mcapodacqua avatar Dec 03 '14 14:12 mcapodacqua