Skip to content
Snippets Groups Projects

Drop Delayed Project Removal column from Namespaces

Merged Drew Blessing requested to merge dblessing_remove_delayed_project_removal_ignore into master
3 files
+ 17
4
Compare changes
  • Side-by-side
  • Inline
Files
3
# frozen_string_literal: true
class RemoveDelayedProjectRemovalFromNamespaces < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
enable_lock_retries!
def up
remove_column :namespaces, :delayed_project_removal
end
def down
add_column :namespaces, :delayed_project_removal, :boolean, default: false, null: false # rubocop:disable Migration/AddColumnsToWideTables
add_concurrent_index :namespaces, :id, name: 'tmp_idx_on_namespaces_delayed_project_removal', where: 'delayed_project_removal = TRUE'
end
end
Loading