#847·migrate

migrate cli mysql drop does not delete views

Author: MrVermondCreated Oct 31, 2022Updated Sep 23, 2026

Describe the Bug A clear and concise description of what the bug is.

Steps to Reproduce Steps to reproduce the behavior:

  1. Add views inside your migrations
  2. Run migrate ... drop
  3. Migrate should remove all views inside db which does not happen

Expected Behavior The call to migrate cli migrate -source 'file://migrations' -database 'mysql://user:pwd@tcp(mysql:3306)/myappdb' drop -f should remove all views in the database

Migrate Version dev Obtained by running: migrate -version

Loaded Source Drivers file Obtained by running: migrate -help

Loaded Database Drivers mysql, stub Obtained by running: migrate -help

Go Version go version go1.19.2 linux/amd64 Obtained by running: go version

Stacktrace Please provide if available

Additional context Add any other context about the problem here.