Skip to content

Error in migration when adding a foreign key with reference option = RESTRICT #556

Closed
@pavlospap

Description

hello I am using the 2.0.8 version and I have this problem. The following code

self::$_connection->addForeignKey('table_name', self::getDbName(), new Reference('fk_table_name_01', array(
            'referencedTable' => 'ref_table',
            'columns' => array('col_name'),
            'referencedColumns' => array('id'),
            'onUpdate' => 'RESTRICT',
            'onDelete' => 'RESTRICT')
        ));

throught the phalcon migration run command will produce a foreign key with reference option = NO ACTION for both update and delete.

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions