S
S
Sergey Nikolaev2015-06-30 14:17:40
PHP
Sergey Nikolaev, 2015-06-30 14:17:40

How to migrate MySql workbench to laravel migration?

Let's say there is a ready-made database in MySql workbench, are there any ways to transfer the database to Laravel migration?
Do not offer hands

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Gorsky, 2015-06-30
@alcanoid

Do a mysqldump of the database, create a migration, and write code in the up() method that will execute SQL queries from the dump obtained in the first step. Of course, for a rollback, you will need to provide something in down ().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question