Support the ongoing development of Laravel.io →
Database Eloquent Architecture
Last updated 2 years ago.
0

Oh, I've just created new topic about converting of existing data. How is it possible to use DB in migrations?

As for your question I believe that using low-level SQL queries is appropriate action. I fully agree with you that migration should not rely on code's current version. migrate::refresh and migrate::rollback both run old migrations that have been written some time ago so can rely on another model's code version. Results are unpredictable.

On the other side low-level SQL queries rely on database structure only.

PS But I am still searching how low-level queries could be executed

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

garygreen garygreen Joined 12 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.