@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
- await migrate(db.pool, { log: (m) => console.log(m) })
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
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/cli",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "3.15.0",
5
+ "version": "3.15.1",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },