# Dev migration error: PGVector

**URL:** https://meta.discourse.org/t/dev-migration-error-pgvector/376162
**Category:** Development
**Created:** [July 28, 2025, 11:25am UTC](https://meta.discourse.org/t/dev-migration-error-pgvector/376162 "2025-07-28T11:25:59Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 28, 2025, 11:26am UTC](https://meta.discourse.org/t/dev-migration-error-pgvector/376162/1 "2025-07-28T11:26:00Z")

</div>

Caused by Discourse AI:

```plaintext
== 20240611170904 UpgradePgvector070: migrating =============================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

```

```plaintext
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'

```

I don’t use the plugin but it’s now bundled.

Anyone solved this before?

---

_[View the full topic](https://meta.discourse.org/t/dev-migration-error-pgvector/376162)._
