Closed Jeckerson closed 4 years ago
During migration generation with foreign keys, it generated with schema name (referencedSchema). The problem is that the name can be different from environment to environment. And migration can not be ran if name is different.
referencedSchema
'references' => [ new Reference( 'fk_accessToken_client_1', [ 'referencedTable' => 'client', 'referencedSchema' => 'public', 'columns' => ['clientId'], 'referencedColumns' => ['id'], 'onUpdate' => 'NO ACTION', 'onDelete' => 'NO ACTION', ] ), ],
During migration generation with foreign keys, it generated with schema name (
referencedSchema
). The problem is that the name can be different from environment to environment. And migration can not be ran if name is different.