Skip to content

Commit 31b9ead

Browse files
Seulgi Kimsgkim126
authored andcommitted
Drop the objects depend on the tables too
1 parent 73c9e92 commit 31b9ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/bin/delete-all-table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ fn get_all_table_names(conn: &Connection) -> Vec<String> {
3939
}
4040

4141
fn drop_table(conn: &Connection, table_name: &str) {
42-
conn.execute(&format!("DROP TABLE {}", table_name), &[]).unwrap();
42+
conn.execute(&format!("DROP TABLE {} CASCADE", table_name), &[]).unwrap();
4343
}

0 commit comments

Comments
 (0)