Situation
We are currently operating with mastra.storage (PostgreSQLStorage) configured with disableInit set to true. However, after deploying in this state, the Cloud SQL logs show that immediately after the server initializes and establishes a connection to Cloud SQL, a large number of CREATE TABLE and ALTER TABLE statements are being executed.
We are unsure whether this behavior is intentional or a bug, and would appreciate it if you could investigate.
Code
export const mastra: Mastra = new Mastra({
storage: defaultStorage,
// ...
})
const sharedStorage = new PostgresStore({
id: "default-storage",
connectionString: env.DATABASE_URL,
disableInit: true,
});
Versions
• mastra/core 1.7.0
• mastra/pg 1.6.1