2016-12-13 07:48:02 -05:00
|
|
|
require Rails.root.join('lib/gitlab/database')
|
|
|
|
require Rails.root.join('lib/gitlab/database/migration_helpers')
|
2015-10-07 11:42:47 -04:00
|
|
|
require Rails.root.join('db/migrate/20151007120511_namespaces_projects_path_lower_indexes')
|
2015-10-08 07:28:26 -04:00
|
|
|
require Rails.root.join('db/migrate/20151008110232_add_users_lower_username_email_indexes')
|
2016-12-13 07:48:02 -05:00
|
|
|
require Rails.root.join('db/migrate/20161212142807_add_lower_path_index_to_routes')
|
2017-03-17 16:43:04 -04:00
|
|
|
require Rails.root.join('db/migrate/20170317203554_index_routes_path_for_like')
|
2017-07-24 18:09:55 -04:00
|
|
|
require Rails.root.join('db/migrate/20170724214302_add_lower_path_index_to_redirect_routes')
|
2017-05-08 06:38:26 -04:00
|
|
|
require Rails.root.join('db/migrate/20170503185032_index_redirect_routes_path_for_like')
|
2017-12-20 14:43:41 -05:00
|
|
|
require Rails.root.join('db/migrate/20171220191323_add_index_on_namespaces_lower_name.rb')
|
2015-10-07 11:42:47 -04:00
|
|
|
|
|
|
|
desc 'GitLab | Sets up PostgreSQL'
|
|
|
|
task setup_postgresql: :environment do
|
|
|
|
NamespacesProjectsPathLowerIndexes.new.up
|
2015-10-08 07:28:26 -04:00
|
|
|
AddUsersLowerUsernameEmailIndexes.new.up
|
2016-12-13 07:48:02 -05:00
|
|
|
AddLowerPathIndexToRoutes.new.up
|
2017-03-17 16:43:04 -04:00
|
|
|
IndexRoutesPathForLike.new.up
|
2017-07-24 18:09:55 -04:00
|
|
|
AddLowerPathIndexToRedirectRoutes.new.up
|
2017-05-03 15:00:52 -04:00
|
|
|
IndexRedirectRoutesPathForLike.new.up
|
2017-12-20 14:43:41 -05:00
|
|
|
AddIndexOnNamespacesLowerName.new.up
|
2015-10-07 11:42:47 -04:00
|
|
|
end
|