@korajs/server 0.3.2 → 0.3.3

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.
package/dist/index.cjs CHANGED
@@ -556,7 +556,9 @@ var PostgresServerStore = class {
556
556
  try {
557
557
  await this.db.execute(import_drizzle_orm.sql.raw(alterSql));
558
558
  } catch (e) {
559
- if (!(e instanceof Error && (e.message.includes("already exists") || e.message.includes("duplicate column")))) {
559
+ const msg = e instanceof Error ? e.message : "";
560
+ const causeMsg = e instanceof Error && e.cause instanceof Error ? e.cause.message : "";
561
+ if (!msg.includes("already exists") && !msg.includes("duplicate column") && !causeMsg.includes("already exists") && !causeMsg.includes("duplicate column")) {
560
562
  throw e;
561
563
  }
562
564
  }