@byline/cli 3.15.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,7 +112,16 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
|
|
|
112
112
|
// than relying on the driver's `autoMigrate` option, so startup DDL is an
|
|
113
113
|
// explicit, awaited step. Reuses the adapter's pool — no second
|
|
114
114
|
// connection. See docs/05-reading-and-delivery/07-search.md.
|
|
115
|
-
|
|
115
|
+
//
|
|
116
|
+
// Wrapped defensively: a migration failure degrades search but must not
|
|
117
|
+
// take down the whole app at boot. We log loudly and continue. (For
|
|
118
|
+
// locked-down Postgres where the app role can't run DDL, drop this call and
|
|
119
|
+
// apply `migrations/0001_init.sql` by hand as a deploy step instead.)
|
|
120
|
+
try {
|
|
121
|
+
await migrate(db.pool, { log: (m) => console.log(m) })
|
|
122
|
+
} catch (err) {
|
|
123
|
+
console.error('[search-postgres] migrate failed — search may be unavailable:', err)
|
|
124
|
+
}
|
|
116
125
|
|
|
117
126
|
const adminStore = createAdminStore(db.drizzle)
|
|
118
127
|
|