这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cli/commands/migrate_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ type migrateCreateOptions struct {
func (o *migrateCreateOptions) run() error {
timestamp := getTime()
createOptions := mig.New(timestamp, o.name, o.EC.MigrationDir)
createOptions.IsCMD = true
err := createOptions.Create()
if err != nil {
return errors.Wrap(err, "error creating migration files")
}
o.EC.Logger.Infof("Migration files created with version %d_%s.[up|down].[yaml|sql]", timestamp, o.name)
o.EC.Logger.Infof("Migration files created with version %d_%s.[up|down].yaml", timestamp, o.name)
return nil
}

Expand Down