Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Modify upgrade 0.1.x to 0.2 to CREATE SCHEMA #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JoePassanante
Copy link
Contributor

When executing the migration, it fails because the vectors schema does not exist. Adding CREATE SCHEMA vectors; before doing the switch resolved the problem.

Tested on PG16, going from 0.1.13 -> 0.2

When executing the migration, it fails because the vectors schema does not exist.  Adding CREATE SCHEMA vectors; before doing the switch resolved the problem. 

Tested on PG16, going from 0.1.13 -> 0.2
Copy link

vercel bot commented Feb 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pgvecto-rs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 6:45am

@JoePassanante JoePassanante changed the title docs: Modify upgrade 0.1.x to 0.2 to increase CREATE SCHEMA docs: Modify upgrade 0.1.x to 0.2 to CREATE SCHEMA Feb 2, 2024
@VoVAllen VoVAllen requested a review from usamoi February 2, 2024 07:01
@@ -54,6 +54,7 @@ Let's assume your `pgvecto.rs` version is `0.1.x` (replace `x` with a number).
```sql
UPDATE pg_catalog.pg_extension SET extversion = '0.1.x' where extname = 'vectors';
UPDATE pg_catalog.pg_extension SET extrelocatable = true where extname = 'vectors';
CREATE SCHEMA vectors;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CREATE SCHEMA vectors;
CREATE SCHEMA IF NOT EXISTS vectors;

Should we use IF NOT EXISTS?

@VoVAllen
Copy link
Member

VoVAllen commented Feb 2, 2024

Also please try fix the DCO with the instruction in https://github.com/tensorchord/pgvecto.rs-docs/pull/40/checks?check_run_id=21141858474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants