mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

Missing create option? #283

Closed kerak19 closed 6 years ago

kerak19 commented 7 years ago

Hello. I've installed CLI version of migrate and now i want to create new migration using "migrate create ...". Problem is i don't have create option. When i'm using migrate -help i don't even see it:

$ migrate -help
Usage: migrate OPTIONS COMMAND [arg...]
       migrate [ -version | -help ]

Options:
  -source          Location of the migrations (driver://url)
  -path            Shorthand for -source=file://path 
  -database        Run migrations against this database (driver://url)
  -prefetch N      Number of migrations to load in advance before executing (default 10)
  -lock-timeout N  Allow N seconds to acquire database lock (default 15)
  -verbose         Print verbose logging
  -version         Print version
  -help            Print usage

Commands:
  goto V       Migrate to version V
  up [N]       Apply all or N up migrations
  down [N]     Apply all or N down migrations
  drop         Drop everyting inside database
  force V      Set version V but don't run migration (ignores dirty state)
  version      Print current migration version

As you can see, there's missing create option. I'm using 3.0.1 version. Is there something wrong with my installation?

mattes commented 7 years ago

https://github.com/mattes/migrate/pull/249 what happened to this PR?

zikosw commented 7 years ago

Hi @kerak19 I think v. 3.0.1 doesn't have a create option Install it via this method https://github.com/mattes/migrate/tree/master/cli#with-go-toolchain. You will get a "dev" version

JensRantil commented 6 years ago

I guess this issue can be closed?