Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create is the parent func of CreateWithPath Checks migration path in the args if not then set db/migrations/ as default
func CreateSample ¶
func CreateSample(args []string)
CreateSample create blogs migration sample `niom migration -s` invokes this function `niom migration -s seed` may be used generate insert statement
func CreateWithPath ¶
func CreateWithPath(fileName, filePath, up, dn string)
CreateWithPath creates migration file with give fileName and filePath It also accept up and down scripts to add into file while creating it.
func Down ¶
Down rollback the latest migration `niom migration down` may used to invoke this function
Types ¶
Click to show internal directories.
Click to hide internal directories.