mattes / migrate

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

Postgres drop misses schema_migrations table and sequences #328

Open ryan0x44 opened 6 years ago

ryan0x44 commented 6 years ago

When using the drop feature, all tables except for schema_migrations are removed, and no sequences are removed.

Looking at the Postgres package Drop method this seems true also: https://github.com/mattes/migrate/blob/master/database/postgres/postgres.go#L219-L254