Migrate Triggers to different databases in Laravel


I have a problem, it turns out that I work with laravel and migrate several tables to different databases thanks to Schema :: connection in a normal way, but the problem is that I also have some TRIGGERS and PROCEDURES as migrations using the DB::unprepared('contenido trigger'); problem is that I need to do something like this:

Schema::connection('comments')->BD::unprepared('contenido trigger');

but it gives Syntax error: c I do not know how to distribute the triigers and procedures to their corresponding Databases, I hope you can help me, thank you very much

asked by Nacho Henriquez Fica 12.11.2018 в 20:53

0 answers