[Solution in Application] select * from strapi_database_schema order by time DESC limit 1 - Out of sort memory, consider increasing server sort buffer size
Hi! 👋 
      
Firstly, thanks for your work on this project! 🙂

# Context
Application scope does not upgrade the buffer for the database

Today I used [patch-package](https://github.com/ds300/patch-package) to patch `@strapi/database@4.15.5` for the project I'm working on.

<!-- 🔺️🔺️🔺️ PLEASE REPLACE THIS BLOCK with a description of your problem, and any other relevant context 🔺️🔺️🔺️ -->

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/@strapi/database/dist/index.js b/node_modules/@strapi/database/dist/index.js
index be9afda..df97aa8 100644
--- a/node_modules/@strapi/database/dist/index.js
+++ b/node_modules/@strapi/database/dist/index.js
@@ -1593,7 +1593,9 @@ const createSchemaStorage = (db) => {
   return {
     async read() {
       await checkTableExists();
-      const res = await db.getConnection().select("*").from(TABLE_NAME).orderBy("time", "DESC").first();
+      const strapiSchemaResponse = await db.getConnection().select("id").from(TABLE_NAME).orderBy("time", "DESC").first();
+      const res = await db.getConnection().select("*").from(TABLE_NAME).where({id: strapiSchemaResponse.id}).first();
+
       if (!res) {
         return null;
       }
```

<em>This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).</em>
