Skip to content

_to_ in table name  #16

@seyfer

Description

@seyfer

If table called like "clients_to_seances"
Then db:generate generates error code

./bash/minion db:generate --name=add_id_to_clients_to_seances

class Add_Id_To_Clients_To_Seances extends Migration
{
    public function up()
    {
        $this->add_column('seances', 'id_to_clients', 'integer');
    }
    public function down()
    {
        $this->remove_column('seances', 'id_to_clients');
    }
}

Expected

class Add_Id_To_Clients_To_Seances extends Migration
{
    public function up()
    {
        $this->add_column('clients_to_seances', 'id', 'integer');
    }
    public function down()
    {
        $this->remove_column('clients_to_seances', 'id');
    }
}

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