Skip to content

Commit

Permalink
Fix migration query
Browse files Browse the repository at this point in the history
Path can't non-null unless it's an import for an analysis job - which existing imports can't be
  • Loading branch information
atruskie committed Dec 17, 2024
1 parent 9e62bb5 commit 4544d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20240524011344_audio_event_import_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def change
# create a default audio_event_import_file for each audio_event_import
query = <<~SQL.squish
INSERT INTO audio_event_import_files (audio_event_import_id, created_at, path, file_hash)
SELECT id, created_at, 'default', null FROM audio_event_imports;
SELECT id, created_at, null, null FROM audio_event_imports;
SQL

execute(query)
Expand Down

0 comments on commit 4544d19

Please sign in to comment.