mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Merge branch 'develop' of github.com:strapi/strapi into features/media-lib
This commit is contained in:
commit
a38c6738e1
@ -304,11 +304,7 @@ module.exports = async ({ ORM, loadedModel, definition, connection, model }) =>
|
||||
|
||||
const allAttrs = ['id', ...attrs];
|
||||
|
||||
await trx.raw(`INSERT INTO ?? (${allAttrs.join(', ')}) ??`, [
|
||||
table,
|
||||
trx.select(allAttrs).from(tmpTable),
|
||||
]);
|
||||
|
||||
await trx.insert(qb => qb.select(allAttrs).from(tmpTable)).into(table);
|
||||
await trx.schema.dropTableIfExists(tmpTable);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user