Skip to content

Migrations don't work with SQLite #184

@Stefan39

Description

@Stefan39

Hello,

the migration don't work with SQLite DB Connection. The error:

*** applying m140808_073114_create_auth_item_group_table
> create table {{%auth_item_group}} ... done (time: 0.000s)
> add column group_code varchar(64) to table {{%auth_item}} ... done (time: 0.000s)
> add foreign key fk_auth_item_group_code: {{%auth_item}} (group_code) references {{%auth_item_group}} (code) ...Exception: yii\db\sqlite\QueryBuilder::addForeignKey is not supported by SQLite. (/path/to/web/vendor/yiisoft/yii2/db/sqlite/QueryBuilder.php:239)

I have seen, that the foreignkey must be set on the creation of the tables, not as separate call. Is it possible to fix it asap?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions