Beego: Generate migrations from models?

Created on 27 Apr 2017  路  4Comments  路  Source: astaxie/beego

Is it possible to generate migrations automatically from models?

Most helpful comment

Maybe Bee should have a way to generate all the migration file from the written models with a command like bee generate migration-from-models. It now seems that we only can generate bee migrations from the command line with field:value (no constraints and not able to analyse existing models).

All 4 comments

orm sqlall can generate migration sql that from empty database
https://beego.me/docs/mvc/model/cmd.md

Not so pretty solution, but current one also can be used. Thank you!

Maybe Bee should have a way to generate all the migration file from the written models with a command like bee generate migration-from-models. It now seems that we only can generate bee migrations from the command line with field:value (no constraints and not able to analyse existing models).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AvoncourtPartners picture AvoncourtPartners  路  4Comments

astaxie picture astaxie  路  4Comments

microyahoo picture microyahoo  路  5Comments

drmaples picture drmaples  路  6Comments

Jamlee picture Jamlee  路  5Comments