mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
remove use of temporary table for inverse order
This commit is contained in:
parent
ab66578671
commit
0413f278bb
@ -328,7 +328,7 @@ const cleanOrderColumnsForInnoDB = async ({
|
||||
await db.connection
|
||||
.raw(
|
||||
`
|
||||
CREATE TEMPORARY TABLE ??
|
||||
CREATE TABLE ??
|
||||
SELECT
|
||||
id,
|
||||
(
|
||||
@ -361,9 +361,7 @@ const cleanOrderColumnsForInnoDB = async ({
|
||||
)
|
||||
.transacting(trx);
|
||||
} finally {
|
||||
await db.connection
|
||||
.raw(`DROP TEMPORARY TABLE IF EXISTS ??`, [tempInvOrderTableName])
|
||||
.transacting(trx);
|
||||
await db.connection.raw(`DROP TABLE IF EXISTS ??`, [tempInvOrderTableName]).transacting(trx);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user