mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Another fix to that migration..
This commit is contained in:
parent
ed6eee47f3
commit
e0ff67c0b4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export class MigrateUsernamesToNewHistoryTable1556909512501 implements Migration
|
|||
toDelete.push(row.id);
|
||||
});
|
||||
stream.on("end", async () => {
|
||||
if (toInsert.length) {
|
||||
if (toInsert.length || toDelete.length) {
|
||||
await queryRunner.query("START TRANSACTION");
|
||||
await queryRunner.query(
|
||||
"INSERT INTO username_history (user_id, username, timestamp) VALUES " +
|
||||
|
|
Loading…
Add table
Reference in a new issue