migration command code example
Example 1: package manager console add migration
add-migration MyFirstMigration
Update-Database
Example 2: migrate command
golang migrate create
migrate create -ext sql -dir db/migration -seq init_schema
eg :migrate create -ext sql events