Skip to content

Commit ead374b

Browse files
fix: remove drop database statements
1 parent d808a1a commit ead374b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/lib/uploadWorker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ uploadQueue.process(async (job) => {
5555

5656
await run(`sed -i -e 's/^CREATE DATABASE.*$//g' ${dbFilePath}`);
5757
await run(`sed -i -e 's/^USE .*$//g' ${dbFilePath}`);
58+
await run(`sed -i -e 's/^DROP DATABASE.*$//g' ${dbFilePath}`);
5859
job.progress(50);
5960
await connection.execute(`DROP DATABASE IF EXISTS \`${databaseName}\``);
6061
await connection.execute(`CREATE DATABASE \`${databaseName}\``);

0 commit comments

Comments
 (0)