Skip to content

Eep! My already defined modules are disalbed. #27

@IngwiePhoenix

Description

@IngwiePhoenix

So I just installed this command and from what I read, it's awesome. I develop a lot of things as modules in my app, so this is coming in handy.

Hoooooowever....

shared.php (included by console.php, used in yiic.php):

    'modules'=>array(
        "user",
    ),

In console.php:

<?php return array_merge(
    require_once(__DIR__."/shared.php"),
    [
        'commandMap' => array(
                'migrate' => array(
                'class' => 'composer.yiiext.migrate-command.EMigrateCommand',
                'migrationPath' => 'application.migrations',
                'migrationTable' => 'tbl_migration',
                'applicationModuleName' => 'BIRD3',
                'migrationSubPath' => 'migrations',
                'connectionID'=>'db',
                'disabledModules' => array(
                    # Empty.
                ),
                'templateFile'=>'application.migration_template',
            ),
        ),
    ]
);

I simplified my modules property - because, ALL of them are disabled.

Ingwie@Ingwies-MBP.Speedport_W723_V_Typ_A_1_01_010 ~/W/BIRD3 $ npm run yiic migrate

> BIRD3@3.0.0-dev.72 yiic /Users/Ingwie/Work/BIRD3
> php protected/yiic.php "migrate"


Yii Migration Tool v1.0 (based on Yii v1.1.16)

extended with EMigrateCommand by cebe <mail@cebe.cc>

Active database component (connectionString):
    mysql:host=localhost;dbname=bird3

The following modules are disabled: user[...]               <-----

No new migration found. Your system is up-to-date.

(I use NPM and Composer together.)

What can I do to automatically get it enabled? Or is it because it does not have a migrations subfolder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions