You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/vespertide-query/src/snapshots/vespertide_query__builder__tests__add_column_with_fk_no_duplicate_fk_in_temp_table@dup_fk_sqlite.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ CREATE UNIQUE INDEX "uq_companion__invite_code" ON "companion" ("invite_code");
let table_def = current_schema.iter().find(|t| t.name == table).ok_or_else(|| QueryError::Other(format!("Table '{}' not found in current schema. SQLite requires current schema information to add constraints.", table)))?;
25
90
26
91
// Create new constraints with the added primary key constraint
let new_constraints = merge_constraint(&table_def.constraints, constraint);
29
93
30
94
let temp_table = format!("{}_temp", table);
31
95
@@ -125,8 +189,7 @@ pub fn build_add_constraint(
125
189
let table_def = current_schema.iter().find(|t| t.name == table).ok_or_else(|| QueryError::Other(format!("Table '{}' not found in current schema. SQLite requires current schema information to add constraints.", table)))?;
126
190
127
191
// Create new constraints with the added foreign key constraint
let new_constraints = merge_constraint(&table_def.constraints, constraint);
130
193
131
194
let temp_table = format!("{}_temp", table);
132
195
@@ -218,8 +281,7 @@ pub fn build_add_constraint(
218
281
let table_def = current_schema.iter().find(|t| t.name == table).ok_or_else(|| QueryError::Other(format!("Table '{}' not found in current schema. SQLite requires current schema information to add constraints.", table)))?;
219
282
220
283
// Create new constraints with the added check constraint
0 commit comments