Commit a6ff503
Fix sqlite_import() failing when tables already exist
sqlite3 .dump produces 'CREATE TABLE' without 'IF NOT EXISTS', so
importing the dump back into the same database fails with
"table X already exists" and exit code 1.
Add a regex replacement to insert 'IF NOT EXISTS' into CREATE TABLE
statements from the dump, consistent with the existing handling for
CREATE INDEX statements.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>1 parent 93be0b6 commit a6ff503
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
0 commit comments