Skip to content

Rake task gitlab:db:drop_tables to also drop views

Andreas Brandl requested to merge ab/drop-tables-rake-task into master

What does this MR do?

We've recently added a view to the database. The intention behind gitlab:db:drop_tables is to end up in a pristine database state where only an empty schema_migrations table exists. Therefore, we'll have to expand it to drop views, too.

This is what the MR does:

  1. Add support to drop views, too
  2. Add specs to cover the rake task (there haven't been any).
Edited by Andreas Brandl

Merge request reports