-
Notifications
You must be signed in to change notification settings - Fork 387
PostgreSQLSessionStorage
throw error: relation "shopify_sessions" already exists
#412
Comments
Hi! This is still an Issue for me with
Best, |
Yes, this problem remains on version 1.0.1 |
I'm also getting this error, and it prevents my app from re-deploying if the shopify_sessions table already exists. would adding something like edit: I've tested it a bit more and adding that seems to work... I'm not sure it it's a true fix, someone with more experience with this will need to confirm. |
Hi there, any news about this issue? |
Use the patched version, there’s a thread in closed issues. Or go the custom route from the docs, it uses redis but you can always adapt to use Postgres with whatever orm etc you prefer =)On Jan 1, 2023, at 5:22 PM, yadsgroup ***@***.***> wrote:
Hi there, any news about this issue?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi @conspireagency, I'm facing the same issue with the patched version. Will try to go for a custom adapter |
Interesting. At one point the simple fix was merged into V3 or whatever branch, but you could also fork. Believe it was just 1 line that always returned that the database table didn’t exist even if it does.On Jan 1, 2023, at 5:36 PM, yadsgroup ***@***.***> wrote:
Hi @conspireagency, I'm facing the same issue with the patched version. Will try to go for a custom adapter
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@yadsgroup did adding |
It worked when modify directly the file from node_module but I didn't succeed in forking the repo to have a stable solution (I'm not a Node expert 😬) |
Great! and yes, I manually copied and modified the file into a different folder so that instead of having it download the package on deployment, it just uses the custom file I modified. |
Thanks, will try 😊 |
Hi, I just did -> web/node_modules/@shopify/shopify-app-session-storage-postgresql/build/cjs/postgresql.js
it only adds CREATE TABLE IF NOT EXISTS query to the function.. |
yes, that will fix the issue locally, but when you go to deploy, it won't use that file unless you specifiy it to. @oguz-kara |
You’d want to fork the repo, using that forked version as your dependency.Best,Daniel Andradewww.ConspireAgency.comSent on the goOn Jan 18, 2023, at 9:52 AM, SeanMythen ***@***.***> wrote:
yes, that will fix the issue locally, but when you go to deploy, it won't use that file unless you specifiy it to. @oguz-kara
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Issue summary
Initialize context with
PostgreSQLSessionStorage
throws error: relation "shopify_sessions" already exists.Expected behavior
No error.
Actual behavior
Steps to reproduce the problem
Reduced test case
The best way to get your bug fixed is to provide a reduced test case.
Checklist
The text was updated successfully, but these errors were encountered: