T
T
time_is_always_against_us2019-09-17 14:03:40
Laravel
time_is_always_against_us, 2019-09-17 14:03:40

How can you automate the creation of migrations for laravel?

I am migrating my site to Laravel.
DB - 180+ tables, some tables have 100+ columns.
Writing for each migration and seeding is unrealistic.
Is there a way to automate this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Antonio Solo, 2019-09-17
@time_is_always_against_us

mysql workbench will save you5d80cd2285069909882081.png

A
Alexander Aksentiev, 2019-09-17
@Sanasol

Why write migrations for existing tables?
Just throw it in a dump and if necessary, "run" it.
Under the seeds, it’s clear that you still have to use your hands, but then again, will it be necessary to write seeds for all tables? If you're going to cover everything with tests, it's a ton of work anyway, and creating seeds/or even migrations is the least of your problems.

K
Konstantin Zhikhor, 2019-09-17
@shevchenko__k

try this https://github.com/Xethron/migrations-generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question