mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 07:25:14 +01:00
stress: Use CREATE TABLE IF NOT EXISTS to create schema
Different threads might attempt to create the same tables so avoid spurious errors printed out to the logs with `CREATE TABLE IF NOT EXISTS`.
This commit is contained in:
@@ -204,7 +204,7 @@ impl ArbitrarySchema {
|
||||
.collect::<Vec<_>>()
|
||||
.join(",");
|
||||
|
||||
format!("CREATE TABLE {} ({});", table.name, columns)
|
||||
format!("CREATE TABLE IF NOT EXISTS {} ({});", table.name, columns)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user