Skip to content

Add a primary key on an existing table #335

Description

@william-suppo

Hello guys,

How we can add a primary key on an existing table ?

I try to do this but the table dont be updated :

    public function up()
    {
        $this->table('toto', array('id' => true))
            ->save();
    }

But Table::update() method was call and this method didn't create primary key ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions