I need to add a new field to existing table, what is the correct process to do this with Beego?
I am familiar with Django's south: first you generate the migration script with manage.py schema_migration
, then execute the migration script manage.py migrate
.
Beego has a command bee generate migration
to generate migration script in database/migrations/xxx.go
. But I don't understand how to use this generated script, it doesn't seem to be connected with anything.
And I don't see any documentation mentioning migration.