Skip to content

Commit edfb38d

Browse files
committed
fix: moved migration into old migration instead of new one
1 parent 24f431c commit edfb38d

3 files changed

Lines changed: 3 additions & 23 deletions

File tree

db/migrate/20260531180000_create_execution_results.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def change
1111
t.jsonb :success
1212
t.jsonb :error
1313

14-
t.check_constraint 'num_nonnulls(success, error) = 1',
14+
t.check_constraint 'num_nonnulls(success, error) <= 1',
1515
name: check_constraint_name(:execution_results, :result, :at_most_one)
1616

1717
t.index '"flow_id", LOWER("execution_identifier")',
@@ -33,7 +33,7 @@ def change
3333
t.jsonb :success
3434
t.jsonb :error
3535

36-
t.check_constraint 'num_nonnulls(success, error) = 1',
36+
t.check_constraint 'num_nonnulls(success, error) <= 1',
3737
name: check_constraint_name(:execution_node_results, :result, :at_most_one)
3838

3939
t.index %i[execution_result_id position],
@@ -49,7 +49,7 @@ def change
4949
foreign_key: { on_delete: :cascade },
5050
index: false
5151
t.integer :position, null: false
52-
t.jsonb :value, null: false
52+
t.jsonb :value
5353

5454
t.index %i[execution_node_result_id position],
5555
unique: true,

db/migrate/20260612100000_allow_null_execution_result_values.rb

Lines changed: 0 additions & 19 deletions
This file was deleted.

db/schema_migrations/20260612100000

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)