Skip to content

Commit ef9aec4

Browse files
committed
add: add "IF NOT EXISTS"
1 parent fa3e392 commit ef9aec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diesel_tests/tests/schema_dsl/structures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ where
8484
{
8585
fn walk_ast(&self, mut out: AstPass<DB>) -> QueryResult<()> {
8686
out.unsafe_to_cache_prepared();
87-
out.push_sql("CREATE TABLE ");
87+
out.push_sql("CREATE TABLE IF NOT EXISTS ");
8888
out.push_identifier(self.name)?;
8989
out.push_sql(" (");
9090
self.columns.walk_ast(out.reborrow())?;

0 commit comments

Comments
 (0)