mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +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
|
await db.connection
|
||||||
.raw(
|
.raw(
|
||||||
`
|
`
|
||||||
CREATE TEMPORARY TABLE ??
|
CREATE TABLE ??
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
(
|
(
|
||||||
@ -361,9 +361,7 @@ const cleanOrderColumnsForInnoDB = async ({
|
|||||||
)
|
)
|
||||||
.transacting(trx);
|
.transacting(trx);
|
||||||
} finally {
|
} finally {
|
||||||
await db.connection
|
await db.connection.raw(`DROP TABLE IF EXISTS ??`, [tempInvOrderTableName]).transacting(trx);
|
||||||
.raw(`DROP TEMPORARY TABLE IF EXISTS ??`, [tempInvOrderTableName])
|
|
||||||
.transacting(trx);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user