sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

create migrations from existing db

Open Goldman90 opened this issue 3 years ago • 2 comments

Hey, is there a function to create a migration from an existing db? My situation is that i've got a complete DB but i want to move my system from a different technology to node, and wanted to use sequelize's migration, but given the size of the DB, creating an initial migration would take a lot of time.

Goldman90 avatar Sep 19 '21 20:09 Goldman90

I have the same problem and i can't find a tutorial online where explain how to manage migrations in this situation.

I think i should create a first "init migration" that represent the state of database schema and update the migration state (SequelizeMeta table) without running it.

Is it right?

albertobissacco avatar Jan 09 '22 16:01 albertobissacco

For now, there is: https://github.com/MRVMV/sequelize-mig

Amine27 avatar Feb 06 '23 10:02 Amine27