File obs-server-2.10-0103-Mark-the-migration-as-safe.patch of Package obs-server

From 5825d783e4cf022a3af0bb4eeed4319b3c1268e5 Mon Sep 17 00:00:00 2001
From: Dani Donisa <daniel.donisa@suse.com>
Date: Thu, 26 Mar 2020 12:09:46 +0100
Subject: [PATCH] Mark the migration as safe

---
 ...180110074142_change_handler_to_longtext_in_delayed_jobs.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/db/migrate/20180110074142_change_handler_to_longtext_in_delayed_jobs.rb b/src/api/db/migrate/20180110074142_change_handler_to_longtext_in_delayed_jobs.rb
index 5cef8c1467..932a54b4a3 100644
--- a/src/api/db/migrate/20180110074142_change_handler_to_longtext_in_delayed_jobs.rb
+++ b/src/api/db/migrate/20180110074142_change_handler_to_longtext_in_delayed_jobs.rb
@@ -1,10 +1,10 @@
 class ChangeHandlerToLongtextInDelayedJobs < ActiveRecord::Migration[5.1]
   reversible do |dir|
     dir.up do
-      change_column :delayed_jobs, :handler, :mediumtext
+      safety_assured { change_column :delayed_jobs, :handler, :mediumtext }
     end
     dir.down do
-      change_column :delayed_jobs, :handler, :text
+      safety_assured { change_column :delayed_jobs, :handler, :text }
     end
   end
 end
-- 
2.31.1