mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
Fix migration for results with empty names [SCI-9443]
This commit is contained in:
parent
1c84a97bd7
commit
79b2e4f984
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue