0

I was considering Sequelize as nodejs orm, but ran into issue while modifying the schema it does not support new columns directly. This SO thread states "migrations" framework as workaround. This seems to be a development overhead especially after first cycle of changes you will end up either deleting the test data or will have to create migration for each new column change. does node-orm or bookshelf have the same problem? I am using postgres database.

Community
  • 1
  • 1
skvsree
  • 487
  • 1
  • 7
  • 19

1 Answers1

1

Using sequelize's migrations, you do not need to create a new migration for each column change as you can include many changes within a migration.

I use fixtures to load my test data so that migrations do not affect my data.

I haven't tried node-orm nor bookshelf, however I have no reason yet to stop using sequelize!

swifty
  • 1,127
  • 1
  • 10
  • 23