3 ms·
A little late to the party, but this could possibly help someone. I spent a few hours trying all of the options in this thread and I couldn't find anything tha
by nickreese 7y ago
A little late to the party, but this could possibly help someone.
I spent a few hours trying all of the options in this thread and I couldn't find anything that also transferred functions and triggers which was vital for my project.
Here is a little bash file that I whipped together to completely wipe the DB and import it in.
https://gist.github.com/nickreese/8eeb01e2f73fec2bf2dbfecf5dc6dd73 https://gist.github.com/nickreese/8eeb01e2f73fec2bf2dbfecf5d...
Just have the variables in your .env file and it will wipe your local DB and copy from production.