Merge pull request #6375 from okriuchykhin/ok_SCI_9443_v2

Fix migration for results with empty names [SCI-9443]
This commit is contained in:
Alex Kriuchykhin 2023-10-06 15:21:10 +02:00 committed by GitHub
commit 9718c22369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ class SetDefaultNamesForResults < ActiveRecord::Migration[7.0]
FROM results
WHERE result_texts.result_id = results.id
AND (result_texts.name = '' OR result_texts.name IS NULL)
AND results.name IS NOT NULL AND results.name != ''"
AND results.name IS NOT NULL AND results.name != '' AND results.name != 'Untitled result'"
)
ActiveRecord::Base.connection.execute(