laravel icon indicating copy to clipboard operation
laravel copied to clipboard

The "--schema=" directive not being obeyed

Open clydiksen opened this issue 4 years ago • 2 comments

The "--schema=" directive not being obeyed. It runs through all schemas.

clydiksen avatar Jun 24 '20 17:06 clydiksen

It's been designed that way in order to keep track of cross schema relations. The way it works is when you specify a schema, it will only override files belonging to that schema. However, if the a table has a new relation on another schema, it will be able to to handle it.

CristianLlanos avatar Jun 27 '20 06:06 CristianLlanos

The algorithm can be improved to lazy load schemas instead of eager loading them. This new approach would potentially solve this problem. Pull requests are welcomed.

CristianLlanos avatar Jun 27 '20 06:06 CristianLlanos