Skip to content

Commit

Permalink
fix: new enum diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 24, 2025
1 parent 95cebf7 commit 4bc0b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/torii/sqlite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ fn add_columns_recursive(
let sql_type = format!(
"TEXT CONSTRAINT [{column_name}_check] CHECK([{column_name}] IN ({all_options}))"
);
if enum_diff.is_some() {
if enum_diff.is_some_and(|diff| diff != e) {
// For upgrades, modify the existing option column to add the new options to the
// CHECK constraint We need to drop the old column and create a new
// one with the new CHECK constraint
Expand Down

0 comments on commit 4bc0b36

Please sign in to comment.