Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.9
obs-server
obs-server-2.9-0104-frontend-Rails-5.2-Update-d...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.9-0104-frontend-Rails-5.2-Update-database-rake-task.patch of Package obs-server
From af14267e836a3e08f03802b8857eb45af9d29f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= <bgeuken@suse.de> Date: Tue, 22 May 2018 17:47:56 +0200 Subject: [PATCH] [frontend] Rails 5.2: Update database rake task The supports_migrations? method got deprecated in Rails 5.1 and now got removed. Since OBS only supports the MySQL adapter and we know that this one supports migration dumps, we don't need this check anyway. See https://github.com/rails/rails/pull/28172 for details. --- src/api/lib/tasks/databases.rake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/lib/tasks/databases.rake b/src/api/lib/tasks/databases.rake index 7a7efdce8a..c251f04157 100644 --- a/src/api/lib/tasks/databases.rake +++ b/src/api/lib/tasks/databases.rake @@ -48,9 +48,7 @@ namespace :db do raise "Task not supported by '#{abcs[Rails.env]['adapter']}'" end - if ActiveRecord::Base.connection.supports_migrations? - structure << ActiveRecord::Base.connection.dump_schema_information - end + structure << ActiveRecord::Base.connection.dump_schema_information structure.gsub!(%r{AUTO_INCREMENT=[0-9]* }, '') structure.gsub!('auto_increment', 'AUTO_INCREMENT') -- 2.25.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor