开发迁移错误

由 Discourse AI 引起:

== 20240611170904 UpgradePgvector070: migrating =============================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
ERROR:  syntax error at or near "("
/home/robert/discourse/lib/mini_sql_multisite_connection.rb:109:in `run'
/home/robert/discourse/plugins/discourse-ai/db/migrate/20240611170904_upgrade_pgvector_070.rb:10:in `up'
/home/robert/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/home/robert/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/home/robert/discourse/lib/migration/safe_migrate.rb:28:in `migrate'

我不使用该插件,但它现在已捆绑。

这是我的 PostgreSQL 版本,我将尝试升级

升级 PostgreSQL 将解决此问题,因为当前版本不支持此迁移中 pgvector 扩展使用的语法。

1 个赞

在升级到 3.5 时,除了安装 pgvector 扩展之外,我们还需要升级 PostgreSQL 吗?
所需的最低 PostgreSQL 版本是多少?

我已迁移到 16,但 15 可能就够了。

1 个赞

我不理解这个主题。该迁移在 PG13 上运行正常。

1 个赞

我运行的是 12 :)。

但感谢您的确认。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.